SQL Formatter & Beautifier

Paste a SQL query — SELECT, CTE, JOIN, subqueries, window functions — and get a clean, properly-indented version with uppercased keywords. Works for PostgreSQL, MySQL, SQLite and standard SQL. Nothing leaves your browser, so it is safe for queries touching production data.

convert² THE BEAUTIFIER
Enter format · K copy
INDENT
Input · raw
0 B 0 ln
1
Output · formatted
0 B 0 ln
{ }
awaiting input
paste code on the left
pick a format above
Original · A
0 B
Removed raw
Added
Original · B
0 B
copied