SQL tools
SQL tools that run locally in your browser.
SQL Formatter — Beautify SQL Online
Format and beautify SQL queries instantly. Paste messy SQL and get indented, readable output.
SQL Minifier — Compress SQL Online
Minify SQL queries online. Remove comments and whitespace for smaller payloads. Free SQL minifier, runs in your browser.
SQL INSERT Generator from JSON
Generate SQL INSERT statements from JSON arrays. Paste JSON and get copy-ready INSERT queries. Free, runs in your browser.
SQL CREATE TABLE Generator from JSON
Generate CREATE TABLE SQL from JSON schema or sample rows. Infer column types instantly. Free browser tool.
SQL Query Builder — SELECT Generator
Assemble a SELECT from tables, columns, joins and conditions and read the SQL it produces, which is a faster way to learn joins than staring at syntax.
Convert CSV to SQL INSERT Statements
Turn a CSV into INSERT statements with a table name you choose, quoting strings and leaving numbers bare so the script runs as written.
Convert SQL INSERT to CSV
Pull the values out of a block of INSERT statements and get CSV rows back, for when a dump is all you have and you need the data in a spreadsheet.
ER Diagram Generator from Schema
Paste a schema and get an entity relationship diagram back, with the foreign keys drawn as the links between tables rather than left in the DDL.
Convert MongoDB JSON to SQL
Translate MongoDB documents into relational rows, mapping nested fields to columns so a collection can be loaded into a SQL table.