Codes & text
SQL Formatter
Format and beautify SQL for MySQL, PostgreSQL, SQL Server, Oracle, SQLite, BigQuery, Snowflake and more. Choose keyword case and indentation.
How to use SQL Formatter
- Paste a query One line or a whole script.
- Choose the dialect MySQL, PostgreSQL, SQL Server, BigQuery and more.
- Format and copy Pick keyword case and indent, then copy or download .sql.
SQL Formatter FAQ
- Do I need an account?
- No. Open the page and use it.
- Is what I enter sent anywhere?
- This tool runs in this browser tab and does not ask for an account. What you enter is not sent anywhere.
- Does it cost anything?
- No. It is free and open source.
- Can I use it on my phone?
- Yes, in a current mobile browser. Tools that need a physical keyboard or mouse are easier on a computer.