HOSTING

Share a PlantUML diagram as a link

Export a PlantUML diagram as SVG, paste it into one HTML file, and upload it. The recipient gets a page that opens on any device, stays sharp at any zoom and can take comments, with no Java or PlantUML installed.

3 min read·

PlantUML turns plain text such as @startuml / Alice -> Bob: hello / @enduml into sequence, class, activity, component and state diagrams. Developers keep it next to code, and assistants often write it because it is text. The recipient usually has no Java or PlantUML, and a PNG export blurs when they zoom into a long sequence diagram.

An HTML page with the diagram as SVG opens on any device, stays sharp at any zoom, and keeps labels as selectable text.

Export the diagram as SVG

Use whichever route you already have:

  • ✓Command line: java -jar plantuml.jar -tsvg diagram.puml writes diagram.svg next to the source file. Some diagram types need Graphviz installed for layout.
  • ✓VS Code with the PlantUML extension: run "PlantUML: Export Current Diagram" from the command palette and pick svg.
  • ✓The PlantUML web server at plantuml.com: paste the source, then open the SVG link under the diagram and save the page.

Put the SVG in one HTML file

Create diagram.html with:

  • ✓<!doctype html>, <meta charset="utf-8"> and <meta name="viewport" content="width=device-width, initial-scale=1"> in the head.
  • ✓A style rule so wide diagrams fit narrow screens: svg { max-width: 100%; height: auto; }.
  • ✓The SVG itself: open the .svg in a text editor, copy everything from <svg to </svg>, and paste it into the body. Leave out the <?xml ...?> line above it.

Why paste instead of linking the SVG

Paste the SVG into the page rather than pointing to it with <img src="diagram.svg">. An uploaded page is hosted on its own, so a second file it points to is not there.

Upload it and send the link

Drag the .html file onto the FileShare Pro dashboard and copy the link. Viewers need no account and nothing installed.

Turn on comments and viewers can leave a note on the page after typing a name. When the diagram changes, export again, replace the SVG in the page, and upload the new file over the old one; the link stays the same: updating a shared link without changing it.

Other diagram tools: Mermaid, Graphviz, draw.io, Excalidraw, D2.

Frequently asked

How do I share a PlantUML diagram with someone who does not have PlantUML?

Export it as SVG, paste the SVG into an HTML page, and upload the page to a host that serves HTML as a web page. The recipient opens the link in any browser.

How do I export PlantUML as SVG?

Run java -jar plantuml.jar -tsvg diagram.puml, use the export command in the VS Code PlantUML extension, or open the SVG link on the PlantUML web server.

Why use SVG instead of PNG?

SVG stays sharp at any zoom and keeps text selectable. Long sequence diagrams exported as PNG blur when someone zooms in to read a message.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included. Password-protected links are on Pro.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free