developer
Free SQL Formatter Online
Format SQL queries for readability and review.
local browser tool
Introduction
SQL formatting improves readability when debugging joins, filters, ordering, and long queries in logs or dashboards.
How To Use
Step 1
Paste SQL
Insert the query you want to clean up.
Step 2
Run formatter
Break major clauses onto separate lines.
Step 3
Review structure
Check select, where, group by, and order by more easily.
Examples
Input
select * from users where active=1
Output
SELECT ... FROM users WHERE active=1
FAQ
Does this tool upload my input?
No. This tool runs in your browser for the first release, so your input stays local.