Developer Tools
SQL Formatter
Paste any SQL query and get it formatted with consistent indentation, keyword capitalisation, and line breaks, making even the most complex JOIN chains readable. Works entirely in your browser.
Features
- Formats SELECT, INSERT, UPDATE, DELETE, CREATE
- Indents JOIN clauses, WHERE conditions, subqueries
- Keyword capitalisation (SELECT, FROM, WHERE)
- Preserves string literals and comments
- Copy or download formatted SQL
How to use it
- Paste your SQL query.
- Click Format.
- Formatted SQL appears in the output panel.
- Copy or download.
Use cases
- Making minified SQL readable for debugging
- Standardising SQL formatting in code reviews
- Formatting exported SQL from ORMs or tools
Limitations
- The formatter targets common SELECT, JOIN, WHERE, GROUP, ORDER, and VALUES clauses.
- Very large input can be slower on older devices.
- This utility is designed for common snippets and local inspection, not as a full security or language-specific validator.
Related tools
CSV to SQL Inserts
Generate SQL INSERT statements from CSV data instantly. Set the table name, and get ready-to-run SQL for MySQL, PostgreSQL, or SQLite. All in your browser.
Use toolJSON Formatter
Format and beautify JSON online. Paste minified or messy JSON and get clean, 2-space indented output with syntax validation, instant, in-browser, no upload.
Use toolLog Prettifier
Prettify JSON log output from Node.js, Python, or any structured logging framework. Colorised, formatted, and readable, browser-only.
Use toolJSON Validator
Validate JSON syntax online with exact error messages. Get line number, column, and a human-readable explanation for every JSON error, processed in your browser.
Use toolJSON Minifier
Minify JSON by removing all whitespace and line breaks. Paste pretty JSON, get compact JSON for APIs, payloads, and config files. Browser-only, free.
Use toolJWT Decoder
Decode and inspect JSON Web Tokens in your browser. See the header, payload, and signature in readable JSON. No server, no logging, completely private.
Use toolFrequently asked
Does it validate SQL syntax?
No. The formatter restructures whitespace and capitalisation without a parser. Syntax errors in the query are not detected.