Search for a command or topic.

LOCAL SEARCH · NO DATA LEAVES YOUR BROWSER
Make diagrams

Export and share

Export a diagram for a README, review, or presentation.

Visual exports share the compiled geometry; changing image formats does not change the layout. Source and data exports serialize the source text or document model. Keep the .dgm file as the editable source when you share an image: the image is convenient to send, while the source lets you update the architecture later.

Choose a format

FormatGood for
SVGREADMEs, web pages, and diagrams that need to stay sharp when zoomed
PNGDocuments and slide decks that expect a conventional image
JPEG, WebP, GIFWorkflows that specifically need those image formats
PDFReviews, printing, and sharing a document
Standalone HTMLA portable page containing the diagram
XML, JSON, URL payloadStructured output or a supported data-sharing workflow
.dgmEditing, version control, and a durable source of truth

Studio exposes the formats the browser supports. WebP, for example, is hidden when that browser cannot encode it. A URL payload does not provide a hosted sharing service, and XML is not necessarily an editable draw.io document.

Export from Studio

Open the .dgm file in Studio, then use its export controls to produce SVG, PNG, PDF, or another supported format. Visual exports use the same geometry as the editor. Keep the original .dgm beside it so the diagram stays editable.

Portable exports inline catalog icons, so they do not depend on a running local server to display correctly. User-embedded SVG is sanitized by the runtime. Provider icons retain their upstream terms in exports; see the project’s icon notices for provenance.

For a pull request, include the .dgm change and, when the image matters to the discussion, an exported SVG. The text diff records the system change; the image shows its effect. For automated renders, pin the CLI version and keep the source and catalog versions stable. Determinism depends on matching inputs, not filenames alone.

Image size limits
RASTER ALLOCATION

Check both axes and total pixels

width × scale≤ 16,384height × scale≤ 16,384output width × output height≤ 16,777,216
Vector SVG remains sharp without allocating a raster canvas. PNG and PDF raster paths apply scale or DPI before enforcing the limits.