Free ER diagram maker

An entity relationship diagram (ERD) describes a data model: entities with their attributes and keys, and the relationships between them with their cardinality, drawn here with crow's feet.

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.

ER DIAGRAM✦ TINGRAPH

When to use an ER diagram

Describe a data model with entities, attributes, primary/foreign keys and cardinalities.

Entities with their attributes, keys marked in a gutter of their own, and crow's-foot relations saying how many of each.

What goes on an ER diagram

  • Entities
  • Attributes
  • Primary and foreign keys
  • Crow's feet

How to make an ER diagram

  1. STEP 1

    Write it, or ask AI

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

    erd "Airline Booking" {
      entity PASSENGER "passengers" {
        pk "id" "bigint"
        "first_name" "varchar(50)"
        "passport_number" "varchar(20)" unique
      }
    
      entity BOOKING "booking" {
        pk "booking_id" "bigint"
        fk "passenger_id" "bigint"
        "status" "varchar(20)"
      }
    
      weak BAGGAGE "baggage" {
        pk "id" "bigint"
        fk "booking_id" "bigint"
      }
    
      PASSENGER one -> many BOOKING "makes"
      BOOKING one -.-> many BAGGAGE "checks in"
    }
  2. STEP 2

    Generate

    Press Generate. Tingraph checks the source, lays out the ER 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

    • Select a table to edit its fields through the panel or on-sheet row controls.
    • Join relations to the specific key rows using their port dots. Edit endpoints, labels and cardinalities in the entity panel.

Tip. A relation can reference TABLE.field rather than the whole table. The ERD layout reads across so key-to-key relations meet the correct rows.

ER diagram maker: questions

What is an ER diagram?

An entity relationship diagram (ERD) describes a data model: entities with their attributes and keys, and the relationships between them with their cardinality, drawn here with crow's feet.

When should I use an ER diagram?

Describe a data model with entities, attributes, primary/foreign keys and cardinalities.

What can an ER diagram hold in Tingraph?

Entities with their attributes, keys marked in a gutter of their own, and crow's-foot relations saying how many of each. The ER diagram editor's palette holds: Entities, Attributes, Primary and foreign keys, Crow's feet.

Can Tingraph AI make an ER diagram for me?

Yes, with a free account. Open the ER diagram editor, open Tingraph AI and describe what the ER 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 ER diagram after it is generated?

Yes. Select a table to edit its fields through the panel or on-sheet row controls. Join relations to the specific key rows using their port dots. Edit endpoints, labels and cardinalities in the entity panel.

Is the ER 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 ER 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 ER diagram now.

Open the ER diagram editor