SQL Formatter
Lay out SQL queries neatly for MySQL, PostgreSQL, SQL Server and more.
Loading SQL Formatter…
Results are provided as-is, without warranty. Please double-check anything important before relying on it. Terms & Disclaimer
About SQL Formatter
Lay out SQL queries neatly for MySQL, PostgreSQL, SQL Server and more.
How to use it
- Type, paste or choose what you want to work with.
- Adjust the options if you need to. The result updates as you go.
- Copy the result or download it.
Questions
- Is SQL Formatter free to use?
- Yes. SQL Formatter is completely free to use, with no sign-up.
- Do I need to create an account or install anything?
- No. Open the page and use it straight away on a phone, tablet or computer.
- How do I use SQL Formatter?
- Type, paste or choose what you want to work with. Adjust the options if you need to. The result updates as you go. Copy the result or download it.
Also useful for: sql beautifierformat sqlpretty print sqlsql query formattermysql formatterpostgres formattert-sql
More Developer tools
JSON Formatter & ValidatorCheck JSON for mistakes and lay it out neatly, with errors pointed out by line and column.Base64 Encode / DecodeEncode text or files to Base64 and decode Base64 back to text or a file.Regex TesterTry a regular expression on your text and see every match, group and replacement live.HTML, CSS & JS BeautifierTidy up messy HTML, CSS, JavaScript, TypeScript and more with Prettier.CSS BeautifierFormat minified or messy CSS, SCSS and Less so it is easy to read.JavaScript BeautifierFormat minified or messy JavaScript and JSX so it is easy to read.