.GRAPHML

GRAPHML File

Graph Markup Language File
Ask a question
QUICK ANSWER

A GRAPHML file stores a mathematical graph - a set of nodes (vertices) and edges (connections) - in plain XML. Open it with Gephi (free) or yEd Graph Editor (free) to visualize the network. It cannot be opened in Excel. The file is plain XML and cannot execute code, so it is safe to open.

Developer: The GraphML Team (academic community; U. of Konstanz, TU Wien, Brown University, et al.) Category: Data Files Open standard MIME: application/xml
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Aug 1, 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 GRAPHML file format?

A .graphml file stores graph data - networks of nodes and edges - in a standardized .xml-based format developed by an academic consortium (University of Konstanz, TU Wien, Brown University) and first published in 2001. It is widely used in network science, social network analysis, bioinformatics, and graph databases.

The structure is straightforward: a <graphml> root element (namespace http://graphml.graphdrawing.org/graphml) contains optional <key> declarations defining a typed attribute schema, followed by one or more <graph> elements. Each <graph> holds <node> and <edge> elements; both may carry <data key="..."> children to attach attribute values. Directed, undirected, mixed, hypergraph, and nested hierarchical graph structures are all supported.

GraphML is a data interchange format, not a visual diagram tool. It encodes graph topology and attributes only; visual coordinates and styling can optionally be added via extension attributes (for example, the y:Geometry attributes used by the yEd editor). The .graphmlz variant is a gzip-compressed .graphml file.

Because .graphml is uncompressed XML, any text editor can inspect it. For analysis and visualization, the most common tools are Gephi (open-source network analysis) and yEd Graph Editor. Python's networkx, Java's JGraphT, and R's igraph library all read and write .graphml natively. A related format is .gexf, used natively by Gephi.

Security & safety

RISK: LOW

A .graphml file is plain XML data and cannot execute code. Opening it is safe. Very large graph files (hundreds of MB) may consume significant RAM in Gephi or yEd (multi-GB for large social networks) - memory-limit the JVM if opening large files. No scripting or macros are possible in the GraphML format.

Format details

in a nutshell
FULL NAMEGraph Markup Language Fileaka GraphML file, graph data file
DEVELOPERThe GraphML Team (academic community; U. of Konstanz, TU Wien, Brown University, et al.)since 2001 (initial GraphML specification published)
CATEGORYData Files
MIME TYPEapplication/xml
TYPEXML-based graph data format
STANDARDOpen · royalty-free

Programs that open GRAPHML files

Windows3 apps
Gephi Open-source File > Open to load a .graphml; Gephi visualizes and analyzes the graph with layouts, statistics, and filters. The standard tool for network analysis.
yEd Graph Editor Free File > Open to load the .graphml; yEd visualizes and edits the graph with automatic layout algorithms. Also exports GraphML with layout attributes.
VS Code / any XML editor Open-source Open as plain XML to inspect the node/edge structure. Install an XML extension for syntax highlighting and validation.
macOS2 apps
Gephi Open-source File > Open; load and analyze the graph. Requires Java.
yEd Graph Editor Free Load the .graphml for visualization and layout.
Linux2 apps
Gephi Open-source File > Open; the primary graph analysis and visualization tool on Linux.
yEd Graph Editor Free Available as a JAR/binary for Linux; load the .graphml for visualization.
Web1 app
Cosmograph (online graph visualizer) Free Upload a GraphML or convert nodes/edges to CSV for large-scale interactive graph visualization in the browser.

Technical details

deep spec
File encodingPlain XML text, UTF-8
Root element<graphml> with XML namespace http://graphml.graphdrawing.org/graphml
Node element<node id="..."> - ID must be unique within the document
Edge element<edge source="..." target="..."> - directed or undirected per the parent <graph edgedefault="..."> attribute
Attribute schema<key> declarations define typed attributes (string, int, double, boolean, long, float) scoped to node, edge, or graph
Attribute values<data key="..."> child elements attach declared attribute values to individual nodes or edges
Graph types supportedDirected, undirected, mixed, hypergraph, and nested/hierarchical graphs
Compressed variant.graphmlz - a gzip-compressed .graphml file; the standard extension for compressed GraphML graphs
Binary signatureNone - starts with optional <?xml declaration then <graphml
Typical file size1 KB (small test graphs) to 500 MB+ (large social or biological networks)
MIME typeapplication/xml (informally also application/graphml+xml)
Visual layoutNot encoded in the base spec; the yEd extension adds y:Geometry and y:NodeLabel attributes for optional layout data
XML schema locationhttp://graphml.graphdrawing.org/xmlns/1.1/graphml.xsd
Released2001 (initial GraphML specification published)
Latest versionGraphML 1.1 (spec stable; no significant changes since ~2007)
Open standardYes · royalty-free
Specificationgraphml.graphdrawing.org

GRAPHML conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with GRAPHML 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 GRAPHML files.

Frequently asked questions

What is a GraphML file?
A GraphML file is an XML document storing a mathematical graph: a set of nodes (vertices) and edges (connections). Used in network science, social network analysis, bioinformatics, and graph databases.
How do I open a .graphml file?
Use Gephi (free, the standard network analysis tool) or yEd Graph Editor (free) to visualize and analyze the graph. You can also open it in any text or XML editor to inspect the raw data.
How do I convert GraphML to PDF or PNG?
Open the .graphml in Gephi or yEd, apply a layout algorithm to position nodes visually, then use File > Export to save as PDF, PNG, or SVG.
Can Excel open a .graphml file?
No. Excel handles tabular data (rows and columns), not graph topology. Open GraphML files in Gephi or yEd.
What is the difference between GraphML and GEXF?
Both are XML graph formats. GraphML is the older, more widely supported standard. GEXF (Graph Exchange XML Format) is Gephi's native format with better support for dynamic/temporal graphs and visual attributes.
What is .graphmlz?
A gzip-compressed GraphML file. The format is identical to .graphml but compressed to reduce file size for large graphs. Tools like Gephi can open .graphmlz directly.

References

1GraphML - Wikipediaen.wikipedia.org
2GraphML specification - graphml.graphdrawing.orggraphml.graphdrawing.org

Keep exploring

across the database

Top extensions this week

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

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

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

Open the toolbox

Browse file extensions A-Z