Export

Download a diagram as an image, as its own code, or as a file other tools open, and see what each kind exports.

Open Export at the top right of the diagram and pick a format. Pictures are under Image, and they're the same for every kind. Text files are under Code, and they depend on the kind.

Files are named after the diagram. The search menu has the same exports, such as Download image, Download vector image and Download BPMN XML.

Images

SVG and PNG download a picture of the diagram, and Copy as image copies one to your clipboard. To choose the picture's size and colours, see Images.

Code and files

The Code part of the menu lists the diagram's own code first, then the files other tools open, then Copy for the code.

KindIts codeFiles for other tools
BPMN processFlowmark (.flowmark), and Copy FlowmarkBPMN 2.0 file (.bpmn), the standard format other BPMN tools open
Sequence diagramSequence code (.seq), and Copy Sequence codeMermaid file (.mmd) and PlantUML file (.puml)
ER diagramSchema code (.dbml), and Copy Schema codeSQL for PostgreSQL, SQL for MySQL, SQL for SQL Server, SQL for SQLite and SQL for Oracle (.sql), and Mermaid file (.mmd)
FlowchartMermaid (.mmd), and Copy MermaidMermaid file (.mmd)

The code downloads as you wrote it. A file for other tools is written by the app from the diagram. So a flowchart's Mermaid is your own code, and its Mermaid file is the app's copy.

What each file holds, and what it leaves out, is on each kind's own page: Sequence import and export, ER import and export and Flowchart import and export.

Download without the menu

⇧ ⌘ E (Shift Ctrl E on Windows and Linux) downloads the first file for other tools, without opening the menu.

Kind⇧ ⌘ E downloads
BPMN processThe .bpmn file
Sequence diagramThe Mermaid file
ER diagramThe PostgreSQL script
FlowchartThe Mermaid file

View a file's text

The bottom of the Export menu has a View… item for each file for other tools. It opens the file's text over the editor, read only.

KindMenu items
BPMN processView BPMN XML…
Sequence diagramView Mermaid… and View PlantUML…
ER diagramView PostgreSQL SQL…, View MySQL SQL…, View SQL Server SQL…, View SQLite SQL…, View Oracle SQL… and View Mermaid…
FlowchartView Mermaid…

A copy button, such as Copy XML, copies all of the text. The download button next to it saves the file. Press Esc to close it.

The text can't be edited there. To change the diagram, edit it on the canvas, in its code or with the assistant.

Colour in files

Every file keeps colours as hex, whatever name you wrote. The colours stay in the diagram either way.

A file that can't hold some of a diagram's colours says so when you download it, such as "Mermaid has no participant colours; 3 were left out." The same sentence is above the text in View….

KindWhat keeps its colours
BPMN processThe .bpmn file. See The BPMN file.
Sequence diagramThe PlantUML and Mermaid files, which read them back when you import. Mermaid has no colour for some parts. See Sequence import and export.
ER diagramThe .dbml download keeps the colours DBML has settings for, but not an enum's. It says so: "DBML has no enum colours; 2 were left out." In the Mermaid file, a table's colour is its entity's style line, and the other colours are left out. SQL files have none.
FlowchartThe Mermaid file, as style and linkStyle lines. See Mermaid code.

Images use the image theme you choose, light unless you say otherwise.

The BPMN file

The BPMN 2.0 file is the standard XML format that other BPMN tools open, such as Camunda Modeler and bpmn.io.

A coloured step, lane, pool, arrow, message, data object, note or group keeps its colour there twice: as BPMN in Color attributes (color:background-color and color:border-color), and as bpmn.io's bioc:fill and bioc:stroke. So Camunda Modeler, bpmn.io and other tools show it.

The border carries the colour, and the fill a light wash of it. Importing a .bpmn file reads either set. See Colour in Flowmark.

To bring a .bpmn file in, see Import a file.

On this page