Save .drawio files as editable PNG images

For those of you who like .drawio format for making diagrams, you might like this feature that I personally just discovered today:

Embedded XML in PNG image files

This is convenient because anyone you share this file with can open it directly as a standard image, but a .drawio editor will recognize the content and allow you to edit that same file!

The PNG image file format supports embedded metadata in a number of ways. can export a PNG image of your diagram and include the diagram itself in the image, by including the XML code in the zTxt section of the image file.

Embedding the diagram as metadata in an image lets you more easily transfer the file between products, vendors, and platforms without data loss. By including the diagram, the image retains all of the data necessary to continue working on it in editor.

@mhippert @jakinh