SQL Formatter - Free Online SQL Beautifier Tool | IconVault
Format and beautify SQL with clause newlines, indentation and keyword casing. MySQL, PostgreSQL, SQL Server, SQLite dialects. Free, in-browser.
SQL Formatter
Beautify SQL with dialect-aware formatting
SQL input
5 of 5 free formats left. Runs in your browser, nothing is uploaded.
Lightweight tokenizer-based formatter: clause newlines, indentation, comma-per-line and inline short parentheses. The dialect adds a few extra keywords to the formatter's vocabulary; formatting rules stay the same. Very exotic dialect syntax may not format perfectly.
About this tool
IconVault's SQL Formatter turns one-line query soup into readable SQL. Its lightweight tokenizer adds clause newlines, smart indentation, one-column-per-line SELECT lists, inline short parentheses and your choice of UPPERCASE, lowercase or preserved keyword casing, with per-dialect keyword vocabulary for MySQL, PostgreSQL, SQL Server, SQLite and generic SQL.
Formatting runs 100% in your browser, so your queries and data are never uploaded, and it is free to use. It is honest about being a lightweight formatter: very exotic dialect syntax may not format perfectly, and it does not validate your SQL against a live database.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon