Paste a long query or a whole script and get it back laid out for reading: each clause on its own line, one column per line, AND and OR conditions lined up, subqueries and CASE expressions indented, and keywords in the case you prefer. Strings, quoted names and comments are copied exactly, so the formatted query does the same thing as the original.
Decides which quotes and comments are recognised.
SELECT
o.id,
c.name AS customer,
sum(i.qty * i.price) AS total,
count(*) items
FROM orders o
JOIN customers c
ON c.id = o.customer_id
LEFT JOIN order_items i
ON i.order_id = o.id
WHERE
o.created_at >= '2024-04-01'
AND o.status IN ('paid', 'shipped')
AND c.state = 'MH' -- Maharashtra only
GROUP BY
o.id,
c.name
HAVING
sum(i.qty * i.price) > 5000
ORDER BY
total DESC
LIMIT 20;Processing runs in your browser. What you type never leaves this device.
Clauses, columns, joins and conditions on their own lines
Indented subqueries, CTEs and CASE expressions
PostgreSQL, MySQL, SQLite, SQL Server and standard SQL quoting
UPPER, lower or unchanged keywords
Highlighted output for keywords, strings, numbers and comments
Strings and comments never altered
ORMs and BI tools log queries on one long line; format them to see what they do.
Agree on one layout so reviews show logic changes, not whitespace.
Spot a missing join condition or a misplaced OR once each condition has its own line.
The dialect decides what counts as a string or name: backticks and # comments for MySQL, [brackets] for SQL Server, $$ dollar quotes for PostgreSQL. Choose yours so they are kept whole.
Collapse a query onto one line with the SQL minifier.
SQL Minifier
Collapse SQL onto one line without touching strings
JSON Formatter
Format and validate JSON
Diff Checker
Compare text differences
CSV Editor
Edit CSV files like a spreadsheet: cells, sort, filter, remove duplicates, add or delete rows and columns
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.