Format and Indent an SQL Query
Format and indent a SQL query (multiple dialects) in your browser.
🔒 100% client-side — no data sent
Automatically format and indent your SQL queries to make them readable and well structured. Paste your query and get a clean version, ready to review or share. Formatting happens in your browser: your queries stay confidential.
What is it for?
- ▸ Make a long or minified SQL query readable
- ▸ Standardize style before a code review
- ▸ Clean up a query generated by an ORM
- ▸ Ease debugging of a complex query
FAQ
Which SQL dialects are supported?
Major syntaxes (MySQL, PostgreSQL, SQL Server, SQLite…) are supported.
Does formatting change my query?
No, only the layout changes (indentation, line breaks, keywords). The logic stays the same.
Are my queries sent to a server?
No, formatting runs entirely in your browser.
Related tools
HTML → JSX Convert HTML into React JSX (class → className, camelCase attributes, style object, comments). JSON · format / validate Format, indent, minify and validate JSON. 100% client-side. JSON · minify Minify JSON (strip whitespace and line breaks) to reduce its size. JSON → JSDoc Generate JSDoc typedefs (@typedef) from JSON, to document and type your JS code. JSON → TypeScript Generate a TypeScript interface from a JSON object, including nested types. JSON · validator Check whether your JSON is valid and pinpoint the first error precisely.