01 / Fast steps
- Paste your SQL query.
- The formatted query appears as you type.
- Copy the result or download it as a .sql file.
Paste a messy one-line query and get readable, consistently indented SQL as you type.
Updates instantly as you type
01 / Fast steps
02 / Best for
03 / Why here
04 / Keep in mind
Tool connections
faq
Standard SQL formatting covers the common ground of PostgreSQL, MySQL, SQL Server and SQLite queries. Vendor-specific extensions are kept intact and spaced generically.
No. Formatting happens locally in your browser, so queries revealing your schema or business logic never leave your device.
Yes, SQL Formatter is completely free, with no sign-up and no usage limits. It runs entirely in your browser, so your data never leaves your device.