Declare classes, members and relationships in text; get a UML class diagram instantly.
A class diagram shows the static structure of your system: classes, attributes, methods and relationships. Writing them as Mermaid text keeps diagrams small, reviewable in pull requests and always up to date with refactors.
Mermaid code
classDiagram
class Animal {
+String name
+makeSound()
}
class Dog {
+fetch()
}
Animal <|-- Dog
Sketch inheritance and composition before coding.
Attach diagrams to RFCs and pull requests.
Explain UML concepts with editable examples.
Free forever plan — 3 diagrams, all core types, no credit card required.
Start Free