Paste a SQL query to reformat it with consistent capitalization, indentation, and line breaks around clauses (SELECT, FROM, WHERE, JOIN, ORDER BY). This is a formatter, not a validator — it does not check the query against a database schema. All formatting happens in your browser.
Runs in your browser — nothing is uploaded; your input never leaves your device. How it works
Quick answer
Paste a SQL query and Tabreon reformats it with consistent capitalization and indentation instantly, entirely in your browser.
Why use Tabreon for this?
Formatting runs client-side — your query, which may reference internal table or column names, never leaves your browser.
Clause-aware indentation makes long queries with joins and subqueries far easier to read.
No account, no character limit, and no watermark on the output.
How to format a SQL query
1Paste your SQL. Paste a SQL query into the input panel.
2Click Format SQL. The query is reformatted with each major clause on its own line and consistent indentation.
3Copy or download. Copy the formatted query, or download it as a file.
What is SQL formatting?
SQL formatting rewrites a query's whitespace, capitalization, and line breaks for readability without changing its meaning — putting each clause (SELECT, FROM, WHERE, JOIN, ORDER BY) on its own line and indenting subclauses consistently. It's especially useful for queries that were minified, generated by an ORM, or pasted from a single-line log entry.
How Tabreon handles your data
Formatting runs entirely in your browser using the sql-formatter library — the SQL you paste is never transmitted to a server.
Key features
Consistent keyword capitalization and clause indentation
Handles JOINs, subqueries, and multi-clause WHERE conditions
Copy-to-clipboard and file download
Works as a formatter for any SQL dialect close to standard ANSI SQL
Common use cases
Reformatting a minified query copied from a slow-query log for readability
Cleaning up an ORM-generated query before including it in a bug report
Standardizing SQL formatting across a codebase before a code review
Common mistakes & limitations
This is a formatter, not a validator or execution engine — it does not check the query against any database schema or catch logical errors.
Dialect-specific syntax outside standard SQL (vendor-specific hints, unusual extensions) may not format exactly as that vendor's own tools would.
Frequently asked questions
No. Formatting happens locally in your browser using the sql-formatter library — your query is never transmitted to a server.
No. It only reformats whitespace and capitalization — it never connects to a database and does not verify that the query is semantically correct.
The formatter targets standard ANSI SQL. Most common syntax from MySQL, PostgreSQL, and SQLite formats correctly; highly vendor-specific extensions may not.