Every format is free and has no watermark. Text is drawn with the bundled Inter font, so an export looks the same on every machine.
Format
Best for
In the browser
CLI
SVG
Docs, wikis, web pages; scales without blur
Made locally, works offline
-o file.svg
PNG
Slides, chat, issues
Made locally, works offline
-o file.png
JPEG
Email and tools that reject PNG
Render service
-o file.jpg
WebP
Smaller web images
Render service
-o file.webp
PDF
Print and sign-off; vector text
Render service
-o file.pdf
Options
Option
Values
Notes
Size (scale)
1x–4x
Pixel density for PNG, JPEG and WebP. SVG and PDF are vector.
Colours (theme)
As written, slate, light, dark
Overrides the theme line in the file.
Background
Theme, transparent, white, or a hex colour
JPEG cannot be transparent; it is flattened to white.
Padding
0–400 px
Space around the diagram. Default 24.
From the playground
Press Export (or Ctrl + E) in the playground. The dialog shows the matching CLI command, so you can repeat the same export in a script or CI job. Copy SVG puts the SVG text on your clipboard for pasting into Figma, a wiki or a pull request.
The web app's render route (POST /api/render) draws a diagram on the server. Public access, with API tokens and quotas, arrives with the cloud release; until then it serves the playground.
{
"source": "diagram flow \"Sign up\"\n start a \"Form sent\"\n end b \"Done\"\n a -> b",
"format": "png",
"scale": 2,
"theme": "light",
"background": "transparent",
"padding": 24
}
It answers 200 with the file, or 422 with { "diagnostics": [...] } when the source has errors, using the same codes as the editor and CLI.