Convert colors between HEX, RGB, HSL, and CMYK — online color converter with live preview.
Open toolSQL Formatter
Format SQL queries with proper indentation, keyword casing, and clause breaks.
Formatted SQL will appear hereWhat is a sql formatter?
This tool formats a SQL query with consistent indentation and line breaks - putting each clause (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY) on its own line, breaking column lists apart, and uppercasing keywords for readability. It works on SELECT, INSERT, UPDATE, and DELETE statements.
How to use this tool
- 1Paste your SQL query, or upload a .sql file.
- 2Click Format.
- 3Keywords are uppercased, clauses are broken onto their own lines, and JOIN/AND/OR conditions are indented for readability.
- 4Copy the result or download it as a .sql file.
Common use cases
Frequently asked questions
Does it work with any SQL dialect?
It formats standard SQL syntax common across MySQL, PostgreSQL, SQLite, and SQL Server. It doesn't validate dialect-specific syntax - it focuses purely on layout and readability, not correctness.
Are string literals affected by formatting?
No - text inside single quotes is protected before formatting and restored afterward untouched, so keyword-like words inside a string value are never accidentally capitalized or line-broken.
Does it handle JOIN clauses and multiple conditions?
Yes - all JOIN variants (LEFT, RIGHT, INNER, FULL, CROSS) are placed on their own indented line, and AND/OR conditions inside WHERE clauses are broken onto separate indented lines for readability.
Is my SQL sent anywhere?
No - formatting happens entirely in your browser, whether you paste the query or upload a file.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Converters"
}