AI Class Diagram Generator

Describe your classes, fields, and relationships in plain English. Diagramly's AI produces an editable UML class diagram.

UML class diagram of an online shop: a Customer places many Orders, and each Order contains many Products and has one Payment, with name, date, price and amount attributes.

Swipe to see all of it, or tap to open full size.

How it works

  1. Step 1
    Describe your classes

    Name the classes, attributes, and how they relate.

  2. Step 2
    Generate with AI

    Diagramly draws classes, associations, and inheritance for you.

  3. Step 3
    Refine & export

    Adjust members and relationships, then export to PNG.

Examples

“A User has many Orders, an Order has many LineItems, and a LineItem references a Product.”
Class diagram: a User places many Orders, an Order contains many LineItems, and each LineItem references a Product.
View PlantUML source
@startuml
class User {
  -id : int
  -name : String
  -email : String
}

class Order {
  -id : int
  -orderDate : Date
  -status : String
}

class LineItem {
  -id : int
  -quantity : int
  -unitPrice : double
}

class Product {
  -id : int
  -name : String
  -price : double
}

User "1" -- "0..*" Order : places
Order "1" *-- "1..*" LineItem : contains
LineItem "0..*" --> "1" Product : references
@enduml
Open this example

Opening it saves a private copy in your diagrams.

Frequently asked questions

Related generators

Ready to create your Class Diagram?

Describe it in plain English and let Diagramly's AI do the drawing.