Paste any Mermaid diagram, apply a theme, change fonts, colours, lines and shadows, then download a clean SVG or high-resolution PNG. Free, in your browser.
01
02
03
04
Results appear here.
Convert between metric and imperial units instantly.
Convert images to a single PDF file with custom page settings.
Convert PDF pages to PNG or JPEG images with adjustable quality.
Combine several PDFs into one file, in the order you choose.
Split a PDF into separate files by page count or ranges, or extract pages.
Mermaid turns a few lines of text into a flowchart, sequence diagram or chart. The default look is plain, though, and copying a diagram into a slide, a README or a design file usually means taking a screenshot. This Mermaid Diagram Styler draws any Mermaid diagram with the theme, font and line style you choose, then exports a clean SVG or a high-resolution PNG. Everything happens in your browser, and your diagram is never uploaded.
Mermaid is a text-based diagram language. Instead of dragging boxes around, you describe the diagram:
flowchart LR
A[Order placed] --> B{In stock?}
B -->|Yes| C[Ship]
B -->|No| D[Back-order]
GitHub, GitLab, Notion, Obsidian and many documentation tools render Mermaid natively. Because a diagram is just text, it lives next to your code, changes in pull requests and never goes out of date in an image editor.
The styler reads every diagram type built into Mermaid 12.1, including:
| Diagram | First line |
|---|---|
| Flowchart | flowchart LR or graph TD |
| Sequence diagram | sequenceDiagram |
| Class diagram | classDiagram |
| State diagram | stateDiagram-v2 |
| Entity relationship | erDiagram |
| Gantt chart | gantt |
| Pie chart | pie |
| Mindmap | mindmap |
| Git graph | gitGraph |
| Timeline, user journey, quadrant, XY chart | timeline, journey, quadrantChart, xychart-beta |
| C4, Sankey, block, architecture, kanban | C4Context, sankey-beta, block-beta, architecture-beta, kanban |
The first line decides the type. If the tool says the type cannot be drawn, check the first line for a typo.
Paste Mermaid code into the Mermaid code box. A sample flowchart is there to start with. The preview redraws as you type. If a line has a syntax error, a message below the tool names the line and the token that was expected, and the last good drawing stays on screen until you fix it.
| Theme | Look | Good for |
|---|---|---|
| Arctic night | Cool blues on slate | Dashboards and technical blogs |
| Blueprint | White lines on engineering blue | Architecture and system diagrams |
| Graphite | Soft greys with a violet highlight | Note apps and dark editors |
| Ink | Light lines on near-black | Dark slides and dark-mode docs |
| Monochrome | Pure black on white, no fills | Printing and academic papers |
| Neon | Bright cyan and magenta on black | Developer talks and social posts |
| Paper | Ink lines on warm paper | Documents and light slides |
| Pastel | Soft tinted fills | Friendly, presentation-style diagrams |
| Sepia | Warm browns on parchment | Historical or editorial content |
| Custom | Your own six colours | Matching a brand |
Choose Custom to reveal six colour pickers: background, text, lines and arrows, shape fill, shape border and highlight.
Charts such as pie, mindmap and git graph use eight series colours, and each theme has its own set.
Under the preview, Download as offers two formats:
Turn on Transparent background to export without a background, so the diagram sits on any colour. Pick a theme whose lines contrast with where you will place it.
Turn on Sketch, in the Hand-drawn section, to redraw the diagram as if by hand: lines wobble slightly and shapes are outlined twice like a quick pen stroke. Choose a pencil fill for coloured-pencil shading. It works with every diagram type and every theme.
The drawing is stable: the same diagram always comes out the same, so the preview doesn't jitter as you edit. Sketch files are larger than clean ones (often 10 to 20 times), because every pencil stroke is a separate line in the SVG.
Mermaid's own styling still works. Colours set in the diagram stay exactly as written, whatever the theme:
flowchart LR
A --> B
style B fill:#d0a215,stroke:#8a6614
classDef warn fill:#ef7a5a
A:::warn
Text on a filled shape switches between light and dark automatically for contrast.
The styler uses Pele, a lightweight Mermaid renderer built for Obsidian, rather than Mermaid's own library. It reads the same syntax, but lays diagrams out with its own engine. Expect tidier spacing and slightly different node positions, not a pixel-for-pixel copy.
A few Mermaid features behave differently:
%%{init: {'theme': 'forest'}}%%) don't apply. Use the theme picker instead.**bold** and *italic*.The diagram is drawn by code running in your browser. Nothing is sent to a server, logged or stored.
Yes. Shapes, lines and text are real SVG elements, so you can open the file in any vector editor and change it.
The slide is probably scaling it up. Export at 3× or 4×, or use the SVG, which never blurs.
Yes. The diagram is your own work, and the tool adds no watermark.
Diagrams up to 50,000 characters are drawn. Very large PNG sizes are capped so the browser can still create the file. If you hit the limit, split the diagram or choose a smaller PNG size.