Paste a query and get it back readable: each clause on its own line, joins and conditions indented, keywords capitalised. Switch to Minify when you need it on a single line.
Works with standard SQL and common dialects (MySQL, PostgreSQL, SQL Server, SQLite). Strings, comments and quoted identifiers are never altered. Your query isn't sent anywhere.
Pyalm builds custom software, APIs and integrations for businesses in India and the UAE. We made these developer tools for our own team — use them free, and talk to us when you need something built.
A 300-character query on one line hides its mistakes. Putting SELECT, FROM, WHERE, GROUP BY and ORDER BY on their own lines, one column per line and each JOIN with its ON condition, makes the structure visible and produces clean diffs in version control.
The formatter tokenises your SQL, so string literals, quoted identifiers and comments are preserved exactly. It changes only whitespace and, if you choose, the case of recognised keywords. It does not validate the query or rewrite it, so a syntax error in your SQL stays a syntax error — only prettier.
📖 Read the full guide: SQL Formatting Best Practices With Examples
Format, validate, minify and syntax-highlight JSON — with exact error line and column.
Compare two blocks of text or code line by line, with added and removed lines highlighted.
Minify or beautify JavaScript, CSS, HTML and JSON — see the size you saved.
Test JavaScript regular expressions live — highlighted matches, capture groups and replace preview.
Standard SQL and the common dialects — MySQL, PostgreSQL, SQL Server and SQLite — for everyday SELECT, INSERT, UPDATE and DELETE statements. Vendor-specific procedural blocks may format more loosely.
No. Formatting runs in your browser, so queries containing table names or sample data stay on your device.
To embed a query in a one-line config value, a log line or a URL, or to compare two queries ignoring layout.