Mermaid and PlantUML Diagram Editor

Type diagram text on the left and see it drawn on the right, pick a theme, export SVG or PNG, and keep several diagrams in one saved project.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Choose a diagram

    Pick one from the menu or + New from template, and name it.

  2. 2
    Write the text

    Edit the Mermaid source; the preview redraws after a short pause.

  3. 3
    Fix errors

    Read the red message, correct the line, and the drawing updates.

  4. 4
    Style it

    Choose a theme, zoom level and PNG background.

  5. 5
    Export

    Download SVG or PNG, copy the SVG code or Copy as Markdown.

  6. 6
    PlantUML when needed

    For a PlantUML diagram, read the notice and open it on plantuml.com or copy the encoded text.

Sobre aquesta eina

Diagrams as text are easy to version, review and change: you edit a few lines instead of dragging boxes. This editor renders Mermaid diagrams live in your browser, using the official Mermaid 11 library loaded from a public CDN. Ten starter templates cover flowcharts, sequence diagrams, class diagrams, entity relationship diagrams, state machines, Gantt charts, pie charts, mind maps, timelines and git graphs. Choose a theme, zoom, and export a crisp SVG or a PNG at double resolution with a white, dark or transparent background. PlantUML sources can be kept in the same project, and you can open them on the PlantUML server when you choose to.

Who it is for

Developers documenting architecture in a README, product managers sketching flows, students drawing UML for coursework, and teams who keep diagrams next to code in Git.

Mermaid in this editor

Rendering happens in your browser with Mermaid's strict security level, which turns off scripts and click handlers inside diagrams. Labels are drawn as SVG text rather than HTML, which keeps PNG export working in every browser. If the text has a mistake, the error message appears above the last good drawing, so you never lose your place.

Diagram types and what they suit

- **Flowchart**: processes, decisions and user journeys. - **Sequence**: messages between a user, services and a database over time, with alt and loop blocks. - **Class**: object models with attributes, methods and relations. - **Entity relationship**: tables with crow's foot cardinality. - **State**: lifecycles such as draft, review, approved and published. - **Gantt**: project phases with dependencies and milestones.

Exporting

Download SVG for documents and slides that scale cleanly, PNG for chat and email, or Copy as Markdown to paste a ```mermaid block into GitHub, GitLab, Notion or Obsidian, which render it natively.

About PlantUML

PlantUML is written in Java and needs a server to draw, so nothing is rendered here automatically. For a PlantUML diagram the page shows a clear notice and a button. Only if you press it does your text, compressed into the link with PlantUML's standard encoding, go to the public plantuml.com server, which returns the image in a new tab. You can also copy the encoded text for a self-hosted PlantUML server.

Worked example

The Gantt template plans a relaunch starting 2 November 2026: research takes 5 days, wireframes 7 days after research, front end 14 days and back end 10 days after the wireframes, testing 5 days after the front end. Mermaid draws research ending 7 November, wireframes on 14 November, the front end on 28 November and the go-live milestone on 3 December.

Limits

Very large diagrams can be slow on phones, and layout is decided by Mermaid, so exact box positions cannot be dragged. Mermaid features that need HTML labels or icons from external packs are not enabled. PlantUML is not drawn locally and should not be used through the public server for confidential content.

Exemple resolt

Gantt from 2 Nov 2026: research 5 d, wireframes 7 d, front end 14 d, testing 5 d; go-live 3 Dec.

En resum

Preguntes freqüents

Is my diagram text sent anywhere?

Mermaid diagrams are drawn in your browser. PlantUML text is only sent to plantuml.com if you press the button that opens it there.

Why is the PNG not blurry?

It is rendered at twice the diagram size, times the zoom level, from the vector SVG.

Can I use the diagrams on GitHub?

Yes. Copy as Markdown gives a mermaid code block that GitHub renders.

Which Mermaid version is used?

Mermaid 11.4.1, loaded from cdn.jsdelivr.net and cached by your browser.

Can I keep several diagrams?

Yes. The project holds any number of diagrams; pick them in the menu and save the project file.

Why is PlantUML not drawn on the page?

PlantUML needs a Java server to render. Running one in the browser is not practical, so the page offers an explicit link instead.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes