.DIA

DIA File

Dia Diagram
Ask a question
QUICK ANSWER

A DIA file is a flowchart, network map, UML, or similar diagram made with Dia, a free open-source diagram editor from the GNOME project. Open it with Dia (Windows/macOS/Linux) or import it into draw.io / diagrams.net. To share it, export to PDF, PNG, or SVG from inside Dia.

Developer: The GNOME Project / Dia developers (originally Alexander Larsson) Category: Vector Image Files Open standard MIME: application/x-dia-diagram
OPENS ON Windows macOS Linux Web
Related: .EMZ · .CDR · .ODG · .VSDX

On this page

19k+ extensions indexed
Last reviewed Aug 5, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DIA file format?

.DIA is the native diagram file format of the Dia diagram editor, a free, open-source vector drawing application from the GNOME ecosystem. It stores flowcharts, UML diagrams, entity-relationship models, network diagrams, and other technical drawings in a structured, editable form.

Internally, a .dia file is a gzip-compressed XML document. Decompressing it reveals a <dia:diagram> root element containing layers, objects (shapes and connectors), geometric coordinates, and per-object properties such as line color, fill, and text labels. The file begins with the standard gzip magic bytes 1F 8B 08. Dia can also save diagrams as plain (uncompressed) XML using the same .dia extension, in which case the file opens directly as readable XML. The gzip CRC-32 provides basic integrity checking for the compressed stream.

The format is open and documented under the dia: XML namespace. Dia was originally written by Alexander Larsson in 1998; the last stable release, Dia 0.97.2, appeared in December 2011. The file format has been stable across the 0.9x series and remains readable by current builds of the application.

Dia exports diagrams to SVG, PNG, PDF, EPS, DXF, and other formats, but the .dia file itself is the editable native source. For users migrating away from Dia, draw.io (diagrams.net) provides active development and can serve as a modern replacement, with manual import via exported SVG or XML.

Security & safety

RISK: LOW

A .dia file is gzip-compressed XML describing a drawing - it contains no macros or executable code and is safe to open in Dia or draw.io. The only practical note: get Dia from the official GNOME/Dia site or your Linux distribution's repository, since third-party "Dia viewer" download portals can bundle adware. You can also rename a copy to .gz and decompress it to inspect the raw XML.

Format details

in a nutshell
FULL NAMEDia Diagramaka Dia drawing, Dia diagram file
DEVELOPERThe GNOME Project / Dia developers (originally Alexander Larsson)since 1998 (Dia diagram editor, part of the GNOME ecosystem)
MIME TYPEapplication/x-dia-diagram
TYPEgzip-compressed XML vector diagram (Dia native format)
STANDARDOpen · royalty-free
This extension is also used by…
  • Microsoft SharePoint Server 2007 temporary file - A transient server-side file SharePoint 2007 could create; not a user document and effectively obsolete - unrelated to the Dia diagram format.
  • DESQview / generic data file - Rare legacy uses of the .dia extension exist; none are common today versus the Dia diagram.
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102
HEX
1F8B08
ASCII
···
Dia files are gzip-compressed by default, so they begin with the gzip magic bytes 1F 8B 08. If saved uncompressed, the file is plain XML beginning with "<?xml version=..." followed by a "<dia:diagram xmlns:dia=..." root element.

Programs that open DIA files

Windows2 apps
Dia Diagram Editor Open-source Install Dia for Windows, then File > Open the .dia file to view and edit it.
draw.io Desktop (diagrams.net) Open-source Use File > Import (Dia .dia import) to bring the diagram into draw.io for editing/export.
macOS2 apps
Dia Diagram Editor Open-source Install Dia (via the official build or Homebrew), then File > Open the .dia file.
draw.io Desktop (diagrams.net) Open-source Import the .dia file (File > Import) to view and re-export it.
Linux2 apps
Dia Diagram Editor Open-source Install from your distro repo (e.g. 'sudo apt install dia'), then open the .dia file. Native platform for Dia.
draw.io Desktop (diagrams.net) Open-source Import the .dia file to edit/export it without installing Dia.
Web1 app
diagrams.net (draw.io online) Free In the browser choose File > Import from > Device and select the .dia file.

Technical details

deep spec
File typegzip-compressed XML vector diagram
EncodingXML (UTF-8), gzip-compressed by default
Magic bytes1F 8B 08 (gzip signature) when compressed; plain XML begins with <?xml and <dia:diagram> root when stored uncompressed
Containergzip stream wrapping a single UTF-8 XML document
Compressiongzip/DEFLATE applied to the whole XML document by default; can be disabled to store plain XML
Typical file size2 KB - 500 KB (compressed; most diagrams are small vector documents)
XML root element<dia:diagram> with nested <dia:layer> and shape/connector object children
Coordinate systemCanvas measured in centimeters; vector-based, effectively unbounded canvas size
Integritygzip CRC-32 on the compressed stream (container-level integrity check)
MIME typeapplication/x-dia-diagram
Diagram typesFlowcharts, UML (class, sequence, state), ER diagrams, network diagrams, circuit diagrams (via shape plug-in libraries)
Export formatsSVG, PNG, PDF, EPS, DXF, WMF, CGM (from Dia application)
Format stabilityStable across Dia 0.9x series; backward compatible - files from Dia 0.90 open in Dia 0.97.2
Released1998 (Dia diagram editor, part of the GNOME ecosystem)
Latest versionDia file format as written by Dia 0.97.x (last stable, 2011); format stable since
Open standardYes · royalty-free
Specificationwiki.gnome.org

DIA conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DIA files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DIA files.

Frequently asked questions

How do I open a DIA file?
Install Dia (free, Windows/macOS/Linux) and use File > Open. If you don't want to install Dia, open the file in draw.io / diagrams.net, which can import Dia diagrams.
What program creates DIA files?
Dia, a free open-source diagram editor from the GNOME project. It's commonly used as a free alternative to Microsoft Visio for flowcharts, network and UML diagrams.
How do I convert a DIA file to PDF or PNG?
Open it in Dia and use File > Export, choosing PDF, PNG, or SVG. That's the simplest way to share the diagram with people who don't have Dia.
Can I open a DIA file in Visio?
Not directly. Export it from Dia to VDX (Visio XML) or SVG first, then open that in Visio. draw.io can also import .dia and re-export to Visio formats.
Why does my DIA file look like gibberish in a text editor?
Dia gzip-compresses the file by default, so it's binary on disk. Rename a copy to .gz and decompress it (or open it in Dia) to see the underlying XML.
Is this the same as a SharePoint .dia file?
No. Some old databases label .dia as a 'SharePoint 2007 temporary file', but the common, user-facing .dia file is a Dia diagram. The SharePoint meaning is an obsolete server temp file, not a document you open.

References

1GNOME - Dia Diagram Editorwiki.gnome.org
2diagrams.net (draw.io) - import formatswww.diagrams.net

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.PARTPartial Download File
7.BINCD/DVD Disc Image (BIN/CUE)
8.RPMSGRestricted Permission Message
9.DBSQLite Database File
10.JSONJavaScript Object Notation file

Related extensions

.EMZWindows Compressed Enhanced Metafile
.CDRCorelDRAW image / drawing
.ODGOpenDocument Graphics (Drawing)
.VSDXMicrosoft Visio Drawing (2013+)
.AIAdobe Illustrator Artwork
.EPSEncapsulated PostScript

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z