SQL Formatter

Free Online SQL Formatter

Format your SQL query into a readable, pretty, beautiful output with this online SQL formatter. Input your minified or poorly formatted SQL, MySQL, PostgreSQL or SQLite text directly into the app and it will output a more readable, usable, pretty SQL string. The queries will be indented using standard new lines for different sections of the query and 4 spaces representing a tab for sub portions of the sql query.

More About Formatting SQL

Often SQL queries are not only ugly but very difficult to read, and a SQL formatter is needed to quickly understand the database query and see what different clauses have been implemented. With a beautified SQL string you can better understand the data and are more productive as you edit, update and analyze the query. You can also use the results of this SQL formatter for display purposes on your website, in your own database-driven program, in an email, report, document, etc. A jumbled minified SQL string is not the most suitable for conveying a message to an audience, but one that has been pretty printed through a formatter app is much more useful.