DiagramPreview
Basic parserdraw.ioXMLViewer

Draw.io Viewer

Choose a .drawio / XML file or paste diagrams.net XML. Preview supported shapes locally, including compressed pages, then export the selected page as SVG, PNG, or .drawio.

Examples

Files are read in this browser. File content is not uploaded. Local drafts may be saved in this browser.

Diagram previewReady
Your draw.io page preview will appear here.

Continue with a related tool

Compatible tools can carry your current source or converted XML. Other tools open separately.

AI Mermaid workflowtext-to-mermaidmermaid-previewmermaid-ai-fixermermaid-to-drawiodrawio-preview
Mermaid to Draw.io

Convert Mermaid diagrams to editable draw.io / diagrams.net XML from Markdown, README, or AI-generated source.

Open
PlantUML to Draw.io

Convert PlantUML sequence, component, class, and activity diagrams into editable draw.io / diagrams.net XML.

Open
Draw.io to SVG Preview

Preview uncompressed diagrams.net / draw.io XML as SVG and export the rendered result.

Open

Verify the result with real files

Support and limits

Files stay in this browser. The basic viewer supports compressed pages and flat rectangles, ellipses, diamonds, text and simple connectors. Groups, swimlanes, images and custom shapes are blocked per page. Maximum 2 MiB/file, 20 pages and 500 cells/page. Exported XML contains only the selected page; keep the original multi-page file.

Minimal example

One rounded rectangle. Open the file locally and compare its label with the SVG/PNG exports.

<mxfile><diagram id="sample" name="Service review"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="a" value="Hello" vertex="1" parent="1" style="rounded=1;whiteSpace=wrap;html=0;"><mxGeometry x="40" y="40" width="120" height="56" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
Minimal example: One rounded rectangle. Open the file locally and compare its label with the SVG/PNG exports.
Example output exported by this site's tool.

Business example

A three-service map with HTTPS and SQL connectors. Check all three labels and both arrow endpoints.

<mxfile><diagram id="sample" name="Service review"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="web" value="Web" vertex="1" parent="1" style="rounded=1;whiteSpace=wrap;html=0;"><mxGeometry x="40" y="40" width="120" height="56" as="geometry"/></mxCell><mxCell id="api" value="API" vertex="1" parent="1" style="rounded=1;whiteSpace=wrap;html=0;"><mxGeometry x="240" y="40" width="120" height="56" as="geometry"/></mxCell><mxCell id="db" value="Database" vertex="1" parent="1" style="rounded=1;whiteSpace=wrap;html=0;"><mxGeometry x="440" y="40" width="120" height="56" as="geometry"/></mxCell><mxCell id="https" value="HTTPS" edge="1" parent="1" source="web" target="api" style="endArrow=block;html=0;"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="sql" value="SQL" edge="1" parent="1" source="api" target="db" style="endArrow=block;html=0;"><mxGeometry relative="1" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
Business example: A three-service map with HTTPS and SQL connectors. Check all three labels and both arrow endpoints.
Example output exported by this site's tool.

Failure example

An image shape is outside the basic viewer. Expect a page-level warning and disabled SVG/PNG; the original page XML can still be saved.

<mxfile><diagram id="sample" name="Service review"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="image" value="Unsupported image" vertex="1" parent="1" style="shape=image;"><mxGeometry x="0" y="0" width="120" height="60" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>

How to use

  1. 1Choose a local .drawio or .xml file, paste XML, or load a built-in example. Files stay in this browser; local drafts may be saved here.
  2. 2Select a page to inspect its shapes, labels and connectors. Use zoom or Fit width for large pages.
  3. 3Review the support notes. Groups, hidden cells, images, custom shapes and unsupported routing disable image export for that page.
  4. 4Use SVG or PNG to export the selected preview. Download file saves only the selected page as editable .drawio XML.
  5. 5Keep the original multi-page file. This basic viewer simplifies labels, styles, arrowheads and routing; use diagrams.net for full fidelity.

Common use cases

Open draw.io file onlinediagrams.net XML inspectionArchitecture diagram handoffDiagram migration reviewSVG export preparation

FAQ

Does this render complex draw.io files?

This is a basic local viewer for flat diagrams with rectangles, rounded rectangles, ellipses, diamonds, text and connectors. It supports raw-deflate compressed pages, but groups, hidden cells, images and custom shapes require diagrams.net. Unsupported pages cannot be exported as images.

Can I open a draw.io file without installing diagrams.net?

Yes. Open a local .drawio or XML file, or paste its content. You can switch pages, zoom and download the current page without uploading file content or loading a third-party viewer.

What should I check before sharing a draw.io file?

Check the selected page, labels, connectors and support notes. SVG/PNG use the simplified local preview; Download file saves only the current page. Preserve your original file for other pages and full styling.

When should I keep draw.io XML instead of only exporting SVG?

Keep the XML when teammates need to edit the diagram later. Export SVG for documentation, READMEs, tickets, or static publishing where editability is less important.

Draw.io Viewer opens .drawio and diagrams.net XML files directly in your browser. It supports mxfile, diagram and mxGraphModel input, uncompressed XML and raw-deflate compressed pages.

The basic viewer preserves node coordinates and supports common shapes, basic colors, arrows, dashed connectors and control points. Rich text becomes plain text; fonts, labels, arrowheads and connector routing may differ from diagrams.net. Unsupported structures are reported per page.

The file limit is 2 MiB and 20 pages, with at most 500 cells per page and 5000 cells overall. Decoded XML is limited to 2 MiB per page and 8 MiB total. Large PNGs may require SVG instead.

File content is not uploaded and external resources are not loaded. SVG/PNG export the selected preview; .drawio download preserves the selected page’s model XML. Keep the original multi-page document for future editing.

Demo: inspect diagrams.net XML before sharing

Open this small flat diagram, inspect its shape and connector labels, then compare SVG, PNG and editable current-page XML downloads.

  • Select the correct page before downloading.
  • Check labels and arrow directions against the source.
  • Use diagrams.net when a page contains unsupported objects.
<mxfile><diagram id="quick-start" name="Quick start"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="start" value="Start" style="rounded=1;fillColor=#dbeafe;strokeColor=#2563eb;" vertex="1" parent="1"><mxGeometry x="40" y="60" width="120" height="60" as="geometry"/></mxCell><mxCell id="check" value="Ready?" style="rhombus;fillColor=#fef3c7;strokeColor=#d97706;" vertex="1" parent="1"><mxGeometry x="240" y="50" width="120" height="80" as="geometry"/></mxCell><mxCell id="done" value="Done" style="ellipse;fillColor=#dcfce7;strokeColor=#16a34a;" vertex="1" parent="1"><mxGeometry x="440" y="60" width="120" height="60" as="geometry"/></mxCell><mxCell id="e1" value="" edge="1" parent="1" source="start" target="check" style="endArrow=block;"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e2" value="Yes" edge="1" parent="1" source="check" target="done" style="endArrow=block;dashed=1;"><mxGeometry relative="1" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>

Debug checklist: make draw.io files portable

draw.io diagrams often move between Confluence, diagrams.net, Git repos, and exported SVGs. A portable file should keep labels, page boundaries, and embedded data intact.

  • Avoid relying on externally hosted images when the diagram must work offline.
  • Keep each page focused on one diagram or review topic.
  • Rename default pages so exports are easier to understand.
Page 1: System Context
Page 2: Checkout Sequence
Page 3: Deployment Notes

Review pattern: separate edit source from publish artifact

Treat draw.io XML as the editable source and SVG as the publishing artifact. That distinction keeps diagrams maintainable while still giving readers a clean static image.

  • Store the .drawio XML next to the documentation that references it.
  • Export SVG only after the page name, viewport, and labels are stable.
  • Mention the source file path near important architecture diagrams so future updates do not happen in a detached export.
docs/architecture/checkout.drawio
README.md -> embeds checkout.svg
PR review -> updates checkout.drawio first

Search intent and fit

Open a draw.io file locally, preview supported flat shapes and export the selected page.

Best for

  • Opening diagrams.net XML safely
  • Checking pages and object counts
  • Reviewing handoff files before sharing

Not for and common failures

Not for

  • Full diagrams.net editing
  • Groups, swimlanes, images or custom shapes
  • Preserving an entire multi-page file in the current-page export

Common failure modes

  • Incomplete XML cannot be parsed
  • Unsupported objects block image export on that page
  • Files above 2 MiB or 20 pages, or pages above 500 cells, exceed viewer limits

Next workflow

Draw.io inspect and export workflow

Select the page, compare labels and connectors, then export SVG/PNG or its XML. Keep the original file for all other pages and metadata.

Open workflow

Review checklist for Draw.io Viewer

Use Draw.io Viewer when you need to inspect source content visually before it becomes documentation, a pull request note, an incident write-up, or a handoff artifact. Open local draw.io files, preview basic shapes, switch pages, zoom, and export the current page.

Before exporting, check that labels are readable, relationships match the source, generated examples do not contain private data, and the preview still makes sense after you edit the input.

Limits and troubleshooting

If the preview fails, reduce the input to the smallest complete example, confirm the format syntax, and then add sections back one at a time. Many rendering failures come from partial files, indentation mistakes, missing diagram headers, or copied snippets that depend on hidden context.

Treat the preview as a review surface rather than a source of truth. Generated diagrams, converted files, dashboards, and rule examples should be checked before they are used in production documentation or operations.

Example inputs to test

  • Minimal XML: <mxfile><diagram id="quick-start" name="Quick start"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="start" value="Start" style="rounded=1;fillColor=#dbe...
  • Two-page file: <mxfile host="DiagramPreview"><diagram name="Context"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="client" value="Client" vertex="1" parent="1"><mxGeo...
  • Service map: <mxfile host="DiagramPreview"><diagram name="Service Map"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="web" value="Web app" vertex="1" parent="1"><mxG...

Tool maturity

Basic parser

Basic parser

This tool focuses on fast structure inspection. Use it for review and debugging, then verify critical output before production use.

The maturity label is not a quality score. It tells visitors whether the tool is best for stable export, deeper debugging, quick parsing, or AI-assisted generation.