About UML Diagram Maker
A class diagram is a structured artifact: a handful of classes with typed attributes and methods, plus relationships that say how they depend on each other. Freehand drawing tools make that structure easy to break; a form-based editor keeps the model valid while you work.
This maker keeps a list of classes and a list of relationships, generates a Mermaid classDiagram from them, and renders it live. Inheritance, association, composition, aggregation and dependency map to Mermaid's own arrows, and the finished diagram exports as SVG, PNG, PDF or the generated .mmd source.
What this tool does
Classes with members
Each class has a name, one attribute per line as name: type, and one method per line as name(params): return type.
Five relationship types
Inheritance, association, composition, aggregation and dependency generate the correct Mermaid classDiagram arrows.
Labels and multiplicity
Relationships accept a label and a multiplicity, so one-to-many and usage notes appear on the diagram.
Validation before export
Duplicate class names, duplicate relationships and missing classes are reported, and export stays disabled until the model is valid.
Library and payment templates
Two worked templates show a class model from start to finish; load one and edit the classes for your own domain.
SVG, PNG, PDF and .mmd export
Export a vector image, a 2x PNG, or the Mermaid source to keep alongside the code.
How to use UML Diagram Maker
- 01
Add your classes
Click Add class for each type in the model and give it a name; up to 30 classes are supported.
- 02
Fill in attributes and methods
Write attributes one per line as name: type and methods one per line as name(params): return type.
- 03
Connect the classes
Add a relationship, choose the from and to classes, pick the arrow type, and optionally add a label and multiplicity.
- 04
Check the preview and validation
The Mermaid class diagram renders as you edit; fix any duplicate names or missing endpoints reported above the preview.
- 05
Export the diagram
Download SVG for documents, a 2x PNG for slides, a one-page PDF, or the .mmd source for version control and further editing.
How this tool works
- Works with
- UML class diagram
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Maximum size
- 30 classes
- Requirements
- Chrome, Edge, Firefox or Safari with JavaScript enabled · No installation or account; diagrams render on your device
Limitations worth knowing
- The editor does not perform UML validation beyond structure; it cannot judge whether a composition or multiplicity is semantically correct.
- Layout is automatic through Mermaid, so classes cannot be dragged into a specific arrangement.
- Diagrams are limited to 30 classes, and the source is regenerated from the form, so hand-written classDiagram syntax cannot be imported back into the editor.
- PNG export is a fixed 2x raster; SVG is better for print and further editing.
Privacy and file handling
Your class model and the generated Mermaid source stay in this browser tab. The diagram is never uploaded, no copy is stored on a server, and no network request carries the model. SVG, PNG, PDF and .mmd exports are produced locally.
Read the full privacy policy
