How to extract tables and columns from SQL
- Upload or paste SQL script. Drop an `.sql` file or paste SQL DDL statements (`CREATE TABLE`) into the text box.
- Click Extract Tables & Columns. The browser SQL regex engine parses table declarations, column names, data types, and primary key constraints.
- Inspect schema structure. View organized tables, field names, SQL data types (e.g. `VARCHAR`, `INT`, `TIMESTAMP`), and key flags.
- Export schema dictionary. Download the extracted data dictionary as a CSV file or copy structured JSON schema objects.
Frequently asked questions
Can this tool parse large SQL database dumps?
Yes! Handles large `.sql` DDL scripts containing hundreds of tables directly in browser memory.
Does it support MySQL and PostgreSQL syntax?
Yes. It parses standard ANSI SQL as well as dialect-specific syntax (backticks `` `user` ``, brackets `[users]`, quotes `"users"`).
Does it extract foreign key relationships?
Yes, it extracts `FOREIGN KEY` references and `PRIMARY KEY` column designations.
Is my SQL database schema kept private?
Yes. Everything runs 100% in local browser JavaScript with zero server uploads.