UML Diagram Generator

AI UML class, state, and activity diagrams. Describe your diagram in plain English below — free, no account needed. Output stays editable as draw.io XML and can be exported as SVG or PNG after signup.

Suggestions:
Tab to autofill · ⌘↵ to generate · 1 free preview a day, no account

Export anywhere

Copy the draw.io XML and import it into diagrams.net, draw.io desktop, or Confluence.

Edit visually

Click "Save & Edit Diagram" to open the result in AIDrawIO — drag, restyle, and re-prompt with better models.

Upgrade for more

One free preview a day here. Sign up for 3 free diagrams, editing, and SVG/PNG export.

See it in action

Example
UML Diagram Generator example — UML class diagram for a library system: Book, Author, Member, Loan, Librarian — with methods and relationships.

UML class diagram for a library system: Book, Author, Member, Loan, Librarian — with methods and relationships.

Generated & polished in AIDrawIOView diagram

When to use this tool

Use it when you need UML class, state, or activity diagrams for software design and documentation.

Use it for object-oriented models where entities, methods, and relationships need to be reviewed visually.

Use it when you want a fast UML draft that can still be polished for engineering handoff or documentation.

Example prompts

Prompt 1

UML class diagram for a library system: Book, Author, Member, Loan, Librarian — with methods and relationships.

Prompt 2

UML class diagram for subscription billing with Customer, Subscription, Invoice, Plan, PaymentMethod, and UsageRecord entities.

Prompt 3

Activity diagram for incident response workflow with detect, classify, mitigate, validate, and postmortem branches.

Prompt 4

State diagram for an order lifecycle with draft, pending, paid, fulfilled, refunded, and cancelled states.

Prompt tips that improve results

Name the main actors, services, systems, or tables instead of describing the diagram vaguely.

Include boundaries, traffic direction, failure paths, or data stores when those details matter to the audience.

After generation, use a follow-up prompt to add labels, security controls, or a second level of detail instead of overloading the first prompt.

Good fit for technical docs

AIDrawIO is built around engineer-first diagram workflows. Generate the first version fast, keep the XML editable, and link the output into docs, reviews, runbooks, or design discussions.

Use category pages for broader discovery

If you are still deciding between diagram types, browse the broader AI diagram generator, technical diagram generator, and draw.io AI generator pages linked below.

Related resources

Go deeper with nearby tool pages, prompt libraries, examples, and guides for this diagram workflow.

Related tools

Switch to adjacent generators when you need a different level of detail or diagram style.

Prompt libraries and examples

Copy proven prompts and browse concrete diagram patterns close to this workflow.

Guides and category pages

Learn the notation, best practices, and nearby commercial-intent pages around this diagram type.

Want this for your team?

AIDrawIO Pro gives your whole team unlimited diagram generation, shared workspaces, version history, and Claude Sonnet 5 & Haiku 4.5.

See pricing

Frequently asked questions

Can this generate more than UML class diagrams?

Yes. It can help with class, state, and activity diagrams, depending on the prompt and the structure you ask for.

What makes a UML prompt stronger?

Specify the diagram type, the important entities or states, and the relationships or transitions you want shown.

Is this tool really free?

Yes. You get one free preview a day with no account. Sign up for 3 free diagrams in the full editor (+1 every week), and go Pro for 60 a month with Claude Sonnet 5 and Haiku 4.5.

What diagram formats can I export?

The generated diagram is draw.io XML. Copy it and import it into draw.io or diagrams.net. Sign up to also export as SVG or PNG directly.

Which AI models are used?

Previews and the free tier run on Gemini 3.7 Flash. Pro adds Claude Sonnet 5 and Haiku 4.5.

Can I edit the generated diagram?

Copy the XML and open it in draw.io, or click "Save & Edit Diagram" to open it in AIDrawIO where you can visually edit, restyle, and re-prompt.

How do I get started?

Describe your diagram in the box above, then click Generate (or press ⌘↵). The placeholder text shows you the kind of detail that works best.

Will my prompts be used to train AI?

No. Prompts are sent directly to the AI provider and are not stored or used to train models by AIDrawIO.