Free class diagram maker

A UML class diagram shows the static structure of an object-oriented system: classes, interfaces and enumerations with their attributes and operations, and the associations, generalizations and dependencies between them.

Write it as short text or describe it to Tingraph AI. Tingraph lays it out, and the result is a canvas you finish by hand.

CLASS DIAGRAM✦ TINGRAPH

When to use a class diagram

Model the static structure of an object-oriented system: classes, interfaces and enumerations with their attributes and operations, and how they relate.

UML classes with their attributes and operations, joined by association, generalisation, realisation, aggregation, composition and dependency.

What goes on a class diagram

  • Three compartments
  • Interfaces & enums
  • Six relations
  • Multiplicity

How to make a class diagram

  1. STEP 1

    Write it, or ask AI

    Open the class diagram editor on a working example and change it, or describe what you need to Tingraph AI. This is the source behind the example:

    class "Shop" {
      class CUST "Customer" {
        attr "- name : String"
        method "+ placeOrder() : Order"
      }
      class ORDER "Order" {
        attr "- total : Decimal"
      }
      abstract PAY "Payment"
      class CARD "CardPayment"
    
      CUST "1" -> "0..*" ORDER "places"
      ORDER "1" -> "1" PAY "settled by"
      inherit CARD -> PAY
    }
  2. STEP 2

    Generate

    Press Generate. Tingraph checks the source, lays out the class diagram and draws it on the sheet. A mistake comes back with its line number and what was expected there.

  3. STEP 3

    Finish it by hand

    • Move and rename classes on the sheet; members are captions you can retype in place.
    • Choose association, generalisation, realisation, aggregation, composition or dependency from the connector rail.

Tip. Write a generalisation child first (inherit Cat -> Animal) and an aggregation or composition whole first (compose Order -> Line). The parent is drawn above its children.

Class diagram maker: questions

What is a class diagram?

A UML class diagram shows the static structure of an object-oriented system: classes, interfaces and enumerations with their attributes and operations, and the associations, generalizations and dependencies between them.

When should I use a class diagram?

Model the static structure of an object-oriented system: classes, interfaces and enumerations with their attributes and operations, and how they relate.

What can a class diagram hold in Tingraph?

UML classes with their attributes and operations, joined by association, generalisation, realisation, aggregation, composition and dependency. The class diagram editor's palette holds: Three compartments, Interfaces & enums, Six relations, Multiplicity.

Can Tingraph AI make a class diagram for me?

Yes, with a free account. Open the class diagram editor, open Tingraph AI and describe what the class diagram should show. It writes the source in this notation, checks that it draws, and you press Generate when it looks right. You can attach a picture or a PDF for it to work from.

Can I edit the class diagram after it is generated?

Yes. Move and rename classes on the sheet; members are captions you can retype in place. Choose association, generalisation, realisation, aggregation, composition or dependency from the connector rail.

Is the class diagram maker free?

Yes, to start. Without an account you can open the editor, edit the example by hand and export it. A free account adds 10 generations a day, a daily Tingraph AI allowance and 2 saved diagrams; Premium, at US$5 for 30 days, adds unlimited generations, more AI, 100 saved diagrams and every export option.

Can I export the class diagram for a paper or slides?

Yes. Formal black-on-white is the default. Free exports PNG and JPG at up to 2x; Premium adds SVG and PDF, up to 12x, and a transparent background.

Make your class diagram now.

Open the class diagram editor