The fastest way to load a local file into PlantUML Online
PlantUML Online Editor does not have a built-in file upload button. Instead, you copy the contents of your local file, paste it into the editor's text area, and PlantUML renders the diagram. If your file is large or you work with multiple files, you can also drag and drop the file directly onto the editor window — most modern browsers will read the file and populate the text area automatically.
The drag-and-drop method works in Chrome, Firefox, Safari, and Edge. If drag-and-drop does not work in your browser, the copy-paste method always works and takes less than a minute.
Key Takeaways
- PlantUML Online Editor accepts diagram code pasted directly into the text area, not uploaded files.
- Dragging a local .puml or .txt file onto the editor window automatically loads its contents in most browsers.
- If drag-and-drop fails, open your file in a text editor, copy all the text, and paste it into PlantUML Online.
- The editor saves your current diagram in your browser's local storage, but does not store files on its servers.
Using drag and drop to load files
Open PlantUML Online Editor in your browser at plantuml.com/plantuml/uml/. Locate your .puml or .txt file in your file manager (Finder on Mac, File Explorer on Windows, or your Linux file manager). Click and hold the file, then drag it onto the white text area in the center of the PlantUML editor window. Release the mouse button.
The editor reads the file and pastes its entire contents into the text area. The diagram renders automatically if the code is valid. If nothing happens, your browser may not support drag-and-drop for this particular editor — switch to the copy-paste method instead.
Copy and paste from a text editor
Open your .puml or .txt file in any text editor — Notepad, VS Code, Sublime Text, or even the default text editor on your system. Select all the text using Ctrl+A (Windows/Linux) or Cmd+A (Mac), then copy it using Ctrl+C or Cmd+C.
Switch to the PlantUML Online Editor window. Click inside the text area on the left side of the screen. Paste the code using Ctrl+V or Cmd+V. The diagram renders immediately in the preview pane on the right.
Working with multiple files
PlantUML Online Editor works with one diagram at a time. If you have multiple .puml files, load each one separately by dragging it in or pasting its contents. The editor stores only the current diagram in your browser's local storage — closing the tab or clearing your browser cache will erase it.
To keep multiple diagrams, save each one before loading the next. Click the download icon (usually a down arrow) in the editor toolbar to save the current diagram as a .puml file to your computer. Then load your next file using drag-and-drop or paste.
Saving your work after editing
When you edit a diagram in PlantUML Online, the changes exist only in your browser until you save them. Look for the download or export button in the toolbar — it usually appears as a down arrow or disk icon. Click it to save the diagram as a .puml file to your Downloads folder or wherever your browser saves files.
You can also export the diagram as an image (PNG or SVG) using the export options in the toolbar. This creates a visual file you can share or embed in documents, separate from the editable .puml source code.
Troubleshooting when files won't load
If drag-and-drop does not work, check that you are dragging a plain text file (.puml, .txt, or .pu extension). Some editors save files in proprietary formats that PlantUML cannot read. Open the file in Notepad or another plain text editor first, then save it as plain text before trying again.
If the diagram does not render after pasting, the code may contain syntax errors. PlantUML shows error messages in the preview pane — read them to find the line with the problem. Common issues include missing colons, mismatched brackets, or unsupported diagram types. Check the PlantUML documentation for the correct syntax for your diagram type (sequence, class, state, etc.).
Frequently Asked Questions
Can I upload files directly to PlantUML Online without copying and pasting?
No, PlantUML Online does not have a file upload button. You must either drag the file onto the editor window or copy its contents and paste them into the text area. Both methods take less than a minute.
Will PlantUML Online save my files to the cloud?
No. PlantUML Online stores your current diagram only in your browser's local storage. If you close the tab, clear your cache, or use a different browser, the diagram is gone. Always download your work as a .puml file to keep a permanent copy on your computer.
What file formats does PlantUML Online accept?
PlantUML Online reads plain text files containing PlantUML code. Use .puml, .pu, or .txt extensions. The editor does not accept binary formats, Word documents, or PDFs — only plain text.
Can I edit a file in PlantUML Online and save changes back to the original file?
No. PlantUML Online is a viewer and editor, not a file manager. After editing, download the updated diagram as a new .puml file. You then replace the original file on your computer manually, or open both files side by side and copy the updated code back into your original file using your text editor.
Why does my diagram show an error after I paste it?
PlantUML is strict about syntax. Check for missing colons after keywords, unmatched parentheses or brackets, and typos in diagram type declarations. The error message in the preview pane usually points to the line with the problem — fix that line and the diagram should render.