crud.md
// crud.md / sql-to-markdown

Turn a SQL schema into Markdown docs.

Paste your CREATE TABLE statements and get a clean Markdown data dictionary — one section per table listing every column with its type, nullability, key (PK / FK / UQ) and default. Dialect-agnostic, inner commas in NUMERIC(10,2) handled. It all runs in your browser — nothing is uploaded.

to-markdown · v1.0 local-only

FAQ

Is my data uploaded?+

No. Your schema is parsed and converted entirely in your browser — it is never sent to a server. We count only anonymous, aggregate usage on our own server (a page view, that a conversion ran) — never your table names, columns, or SQL.

Which SQL dialects does it understand?+

It is deliberately dialect-agnostic and best-effort, so MySQL, PostgreSQL, SQLite and SQL Server CREATE TABLE statements all work. Identifiers wrapped in backticks, double-quotes or square brackets are unwrapped, IF NOT EXISTS and schema prefixes are handled, and inner commas in types like NUMERIC(10,2) or VARCHAR(255) never split a column.

What do PK, FK and UQ mean in the Key column?+

PK is a primary key, FK a foreign key (a column with REFERENCES, or named in a table-level FOREIGN KEY), and UQ a unique column. Table-level PRIMARY KEY (…), FOREIGN KEY (…) and UNIQUE (…) constraints are folded back onto the columns they name.

How are NOT NULL and DEFAULT shown?+

The Null column is No for NOT NULL columns and Yes otherwise. The Default column shows the default expression as written — a string, a number, or a function like now() — and notes auto_increment for AUTO_INCREMENT / SERIAL columns.