Related tools
- Markdown Table EditorPaste a table from Excel, a CSV, or HTML and get a tidy, aligned Markdown table back.
- JSON / JWT / Base64Format, minify and validate JSON, decode a JWT into its header and claims, and convert base64 or URL percent-encoding, all in one box.
- SQLite BrowserDrop a .db file and browse tables or run SQL, all in your browser.
- Binary Format DecoderDecode protobuf, CBOR, and msgpack payloads to readable JSON in your browser.
- Data Format ConverterConvert data between CSV, JSON, YAML, and TOML in any direction, auto detecting the source format from what you paste.
- Decode AnythingRecursively unwrap base64, hex, URL encoding, gzip, JSON, JWTs, timestamps and IDs until plain meaning falls out.
What it does
Formats and normalizes SQL for nine dialects, including Standard SQL, PostgreSQL, MySQL, SQLite, SQL Server, BigQuery, Snowflake, MariaDB, and Oracle PL/SQL. Reindents clauses, breaks long statements onto readable lines, and lets you set keyword case and indent width. Handles multiple semicolon-separated statements in one paste.
How to use it
Paste a query or a batch of statements into the input, pick the dialect that matches your database, and adjust keyword case, indent width, or spacing between queries. The formatted SQL appears instantly with a copy button, and the URL updates so you can share exactly what you see.
Why this one
Most online SQL formatters cap how much you can paste, run ads next to the output, or push a signup wall after a few uses, and all of them send your query to a server first. This one runs the formatter locally in your browser: your files and inputs never leave your device, there is no length cap, and no ads.
FAQ
- Which SQL dialects are supported?
- Standard SQL, PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), BigQuery, Snowflake, MariaDB, and Oracle PL/SQL. Pick the one that matches your database for dialect-specific syntax like PostgreSQL casts or T-SQL square-bracket identifiers.
- Does it validate or run my SQL?
- No. It only reformats whitespace and casing, it does not check the query against a schema or execute it, so a formatted query can still fail at the database if the SQL itself is wrong.
- Is my query uploaded anywhere?
- No, your files and inputs never leave your device. Formatting happens entirely in your browser.
Keyboard shortcuts: press ? anywhere on this page to see them.