Excel to Database Diagram
Upload an .xlsx or .xls spreadsheet and instantly see each sheet as a database table in an interactive ER diagram. Column headers become columns, and you can add relationships, edit the schema visually, then export back to Excel, SQL, JSON, or PNG.
How Excel import works
GraphMyDB uses the SheetJS library to parse Excel files entirely in your browser. Nothing is uploaded to any server.
One sheet = one table
Each worksheet in your Excel file becomes a table node in the ER diagram. The sheet name becomes the table name.
Headers become columns
The first row of each sheet is treated as column headers. Each header becomes a column in the diagram with its inferred type.
Both .xlsx and .xls
Modern (.xlsx) and legacy (.xls) Excel formats are both supported via the SheetJS parser.
Full round-trip
Import from Excel, edit the schema visually (add tables, columns, relationships), then export back to Excel with one sheet per table.
SQL DDL in Code tab
The imported schema is also rendered as SQL CREATE TABLE statements in the Code tab, ready to copy into your database.
Combine with SQL
After importing Excel, you can switch to the Code tab and modify the generated SQL. Changes are reflected in the diagram in real time.
Step by step
Upload your .xlsx
Go to the Upload tab and drop an Excel file. The app reads it in your browser — nothing is sent to a server.
See the diagram
Each sheet becomes a table with columns from the header row. The diagram shows all tables with auto-layout.
Edit and export
Add relationships between tables, add columns, then export as Excel, SQL DDL, JSON, PNG, or SVG.
Who is this for?
Business analysts
Turn spreadsheets into database schemas for documentation, presentations, or migration planning.
Database designers
Start from an Excel data model and convert it into proper SQL DDL with relationships.
Project managers
Understand data structures shared as Excel files without needing SQL knowledge.
Students
Learn relational database design by importing familiar Excel data and seeing it as an ER diagram.