SQL Formatter
Paste your SQL query to format it with proper indentation and keyword capitalization.
How to Use
- 1Paste your SQL query into the input editor.
- 2Select your SQL dialect from the dropdown.
- 3Click Format to beautify the query.
- 4Copy the formatted SQL or adjust indentation settings to match your team's style.
Frequently Asked Questions
Which SQL dialects are supported?
The formatter supports standard SQL, MySQL, PostgreSQL, SQLite, Microsoft SQL Server, and MariaDB. Each dialect handles specific syntax and functions correctly.
Does the formatter change the logic of my query?
No. The formatter only changes whitespace, indentation, and letter case of keywords. The logical behavior and results of your query remain unchanged.
Can I customize the formatting style?
Yes. You can configure indentation width, keyword case (upper, lower, or preserve), comma position, and line width to match your team or project conventions.