Draw.io to PNG and SVG Converter

Paste draw.io XML or open a .drawio file. The diagram is drawn right here, and you can save it as PNG or SVG. Nothing is uploaded.

Examples:

Export

Runs entirely in your browser. Nothing you enter is sent or stored.

How to use

  1. Paste the XML or open a .drawio file.
  2. If the file has several pages, pick one.
  3. Keep draw.io coordinates, or switch to auto layout for a top-to-bottom flow.
  4. Download PNG or SVG.

Shapes, labels, fill and stroke colors and connectors are read from the mxGraphModel. Compressed diagrams (base64 + deflate) are decompressed in the browser.

Auto layout ignores positions: connected boxes are sorted along the arrows and stacked top to bottom, each box showing its first line as a bold title and the other lines below. Boxes without any connector are left out.

Use cases & tips

Getting a diagram into slides, a wiki or a README

Many places that accept an image reject a .drawio file. Open the file here, check the preview, and either download a PNG or use Copy to put the picture straight on the clipboard, then paste it into a slide, a chat message or a ticket. SVG suits documents that scale the image, since text and lines stay sharp. Because nothing is uploaded, internal architecture diagrams can be converted without leaving your browser.

Choosing size and background

At 1× one draw.io unit becomes one pixel, so a diagram that is 800 units wide gives an 800-pixel image, which looks soft on a projector or a high-density screen. Pick 2× or 3× for slides and print; the scale goes from 1× to 4×. The background can be white, transparent or a color you choose. Transparent is handy on a coloured slide, but dark text on a dark page disappears, so preview it on the final background.

What is drawn and what is not

Rectangles, rounded rectangles, ellipses, rhombuses, text and straight connectors with waypoints are drawn, including dashed lines. Anything else, such as cylinders, clouds or vendor icon sets, falls back to a plain rectangle, and long labels are not wrapped. Look over the preview before sending it on. When exact fidelity matters, for example a diagram full of cloud icons, export from draw.io itself and use this page for the simple ones.

Pages, compressed files and auto layout

A file with several pages shows a page selector, and one button saves every page into a ZIP. Compressed diagrams are read too. Auto layout ignores coordinates and stacks boxes along the arrows from top to bottom, with the first line of each box as a bold title. It suits XML produced by a script or an assistant that has no positions. Boxes with no connector are left out, so link every box you want to see.

Frequently asked questions

Does it draw every draw.io shape?

No. Rectangles, rounded rectangles, ellipses, rhombuses, text and straight connectors with waypoints are drawn. Other shapes appear as rectangles, and long labels are not wrapped.

Can it open compressed .drawio files?

Yes. Both plain XML and the compressed format (base64 of raw deflate of URL-encoded XML) are read.

How large is the PNG?

The same size as the SVG. With draw.io coordinates, one draw.io unit is one pixel. Auto layout is drawn at 150 dpi and is 1,854 px wide.