100% in your browser · your files never leave your device

UML Class Diagram Maker — Fields, Methods & Relations

Describe classes with fields and methods and draw inheritance, realization, composition, and aggregation. Mermaid-style source or table editor. No upload.

Loading tool…

More tools

All free, all private — everything runs in your browser.

How to use UML Class Diagram

  1. 1Describe each class in a block: class Animal { … } with one field or method per line (+ marks public).
  2. 2Add relations between classes: Animal <|-- Dog (inheritance), ..|> realization, *-- composition, o-- aggregation, -- association.
  3. 3Prefer forms? Use the table editor — it generates the classDiagram source for you; switch views to hand-tune it.
  4. 4Export PNG or SVG. The same source always regenerates the identical SVG.

UML Class Diagram FAQ

Which UML relations are supported?
Inheritance (`<|--`), realization (`..|>`), composition (`*--`), aggregation (`o--`), and plain association (`--`), each drawn with the correct UML arrowhead or diamond.
Do I have to write code?
No — the built-in table editor generates the classDiagram source for you: add classes, fields, and methods in form fields and switch to the source view to see (or hand-tune) the generated text.
Can it render existing Mermaid classDiagram files?
It renders the core subset those files use in practice (class blocks with members plus the five relation kinds). Unsupported lines produce a friendly, line-numbered error instead of a broken render.