SQL to ER diagram

Draw tables and explicit foreign keys from CREATE TABLE statements.

Processed on your device. No file upload.

How to use this tool

  1. Enter your values or try the example.
  2. Run the tool and check the result.
  3. Save the result where a download is available.

Supported features & limits

Parses common CREATE TABLE syntax, columns, primary keys and explicit REFERENCES. Does not execute SQL or resolve ALTER TABLE statements. Review dialect-specific constructs. Maximum 100 KB.

What happens to my files?

Your browser reads the file locally. File contents are not sent to our server. Closing or resetting this page clears the working result. Downloaded copies remain on your device.

Maintained by Roman Zmazhenko. Updated 1 November 2026.