FREE · NO SIGNUP · FAIR-USE LIMITS

UML Class Diagram Maker

A UML class diagram describes classes, attributes, operations, and relationships to make an object-oriented design easier to review.

UML class diagram · every result uses this diagram type  ·  ⌘↵ to run

Free · no signup · no credit card · daily fair-use limits

Live sample · Shape class hierarchy with an interface — type above to make your own
Shape hierarchy UML class diagram: 1 interface, 1 abstract, 2 class; 1 realization, 2 generalization; 1 merged inheritance tree. Shape hierarchy «interface» Shape + area(): double + perimeter(): double AbstractShape # name: String + area(): double + perimeter(): double + describe(): String Circle + radius: double + area(): double + perimeter(): double Square + side: double + area(): double + perimeter(): double

UML class diagram examples

Open a finished example instantly. Edit the prompt to generate your own version.

How to create a UML class diagram

  1. Define the scope

    Start with the responsibilities of the objects in your domain.

  2. Describe the important details

    Choose relationships deliberately.

  3. Review and download

    Trace the relationships against your requirements, correct the prompt as needed, and download SVG or PNG.

Practical UML class diagram tips

Frequently asked questions

How is a UML class diagram different from an ER diagram?

A class diagram models object-oriented types with attributes, methods, and relationships. An ER diagram focuses on data entities, keys, and database relationships.

Can I show interfaces and abstract classes?

Yes. Name the interfaces and abstract classes, specify the implementing or inheriting classes, and describe their operations.

Can I include visibility and multiplicity?

Yes. State public or private members and cardinalities such as one customer to many orders. Review the generated labels and relationship direction.

Does the maker read my source code?

No. It draws from the description you enter. You can describe a selected set of classes, but it does not scan or compile your repository.

Related diagram tools

Choose a diagram for the question you need to explain.