Quick Answer
A UML class diagram models a software system’s classes, their attributes and methods, and the relationships between them. This free browser tool loads a four-class domain model with UML compartments, visibility markers and cardinality labels — add inheritance, dependency or diamond arrowheads and export SVG, PNG, PDF, draw.io or Visio (.vsdx) with no sign-up.
What this template looks like in the editor

What’s inside this starter template
- Four domain classes: Customer (id, name, email, placeOrder, ordersSince), Order (id, status, placedAt, total, submit), OrderItem (quantity, unitPrice, lineTotal) and Product (sku, name, price, isAvailable).
- Standard UML visibility prefixes (- private attributes, + public methods) and return types on every row.
- Three labelled associations with multiplicities: Customer → Order (places 1..*), Order → OrderItem (contains 1..*), OrderItem → Product (refers to 0..*).
- UML & software palette on the left with Interface, Abstract class, Package, Component and Note shapes.
Modelling domain boundaries clearly in UML class diagrams
Good UML class diagrams stay selective: include the domain invariants and key methods that explain how aggregates interact, and omit boilerplate getters, setters and framework annotations. Putting multiplicities (1, 0..1, 1..*, 0..*) on every association prevents the most common design ambiguity — whether a relationship is optional or mandatory.
Switch connector styles deliberately so readers can scan structure in seconds: use the Inheritance preset for subtype hierarchies, Dependency (dashed) for "uses without owning", and a Diamond start arrow from the Style tab when a parent controls a child’s lifecycle (such as Order owning OrderItem). Exporting to SVG drops cleanly into Markdown RFCs and Git repositories with zero pixelation.
How It Works
Double-click any class name, attribute or method row in the starter model to replace it with your own domain types.
Select a class container and choose Tools → Add row (attribute / column) to append another attribute or method.
Connect classes with the Connector, Inheritance or Dependency preset in the palette; for composition, select a connector and pick Diamond as its start or end arrow in the Style tab.
Double-click any connector to type its role and multiplicity (such as 1..* or 0..1), then export SVG, PDF or Visio.
Key Facts
- UML class containers with typed attributes and method rows using + / - visibility
- Add attribute or method rows to a selected class via Tools → Add row (attribute / column)
- Inheritance (hollow triangle) and Dependency (dashed) presets, plus Diamond arrowheads in the Style tab for composition
- Editable multiplicity labels (1..*, 0..*) placed directly on connectors
- Export crisp SVG for RFCs and architecture docs, plus PNG, PDF, draw.io and Visio (.vsdx)
Frequently Asked Questions
Which UML class relationships can I draw here?
You can draw associations (solid line), inheritance / generalisation (Inheritance preset with hollow triangle), dependencies (Dependency dashed preset), and composition or aggregation by setting the Diamond arrowhead in the Format panel’s Style tab — with multiplicity labels on any connector.
How do I add another attribute or method row to a class box?
Click the class box header to select the class container, then choose Tools → Add row (attribute / column). Double-click the new row to type its visibility, name and return type.
Can this UML tool generate Java, TypeScript or C# code from a class diagram?
No — it is a visual diagram editor rather than a code generator. If you are modelling a relational database rather than object classes, use the ER diagram tool, which does import and generate SQL CREATE TABLE statements.
Related diagram types
- UML sequence diagramTrace how instances of these classes call one another at runtime.
- ER diagramMap the domain classes onto relational database tables and generate SQL.
- State machineDetail the OrderStatus transitions (Draft, Submitted, Published, Rejected).
Comparing features against paid tools or opening an existing .vsdx file? Read the full Visio & Lucidchart alternative guide.
How this works
This template runs on the same client-side maxGraph diagram engine as the main editor. Every shape, connector and custom Shape Data property stays in your browser tab, autosaves to your device’s IndexedDB, and exports straight to PNG, SVG, PDF, PowerPoint, Word, draw.io or Visio (.vsdx) without uploading your diagram.
What this editor can’t do
- The Style tab provides a filled Diamond arrowhead (composition) rather than a separate hollow diamond; use a note or label if you must distinguish shared aggregation strictly.
- Does not reverse-engineer source code or generate class files — use the ER diagram tool for SQL round-tripping.