SQL Formatter
Format and beautify messy SQL queries.
Advertisement
About SQL Formatter
Format and beautify SQL queries online. Supports multiple SQL dialects to make messy queries readable and well-structured.
How to Use
- 1
Paste Query
Paste your minified or messy SQL query.
- 2
Format
Click the format button to indent and structure the SQL keywords.
Examples
Basic query
Input:
SELECT * FROM users WHERE age>18Output:
SELECT
*
FROM
users
WHERE
age > 18Frequently Asked Questions
What SQL dialects are supported?
It supports Standard SQL, MySQL, PostgreSQL, and more.
Does it execute the SQL?
No, it only parses and formats the text. No queries are executed.
