Prettify and minify your SQL queries for better readability.
Input SQL
Formatted Output
SQL Formatter helps you complete this task in seconds directly in the browser without installing extra software.
Format messy SQL queries instantly with proper indentation and syntax highlighting.
Paste your SQL query.
Click Format to prettify.
Use Minify for a compact version.
SQL Formatter runs entirely in your browser: it takes your input, processes it on your device, and returns the result instantly — nothing is uploaded to a server. Prettify and minify your SQL queries for better readability.
It works best with standard SQL, MySQL, and PostgreSQL.
No, it only formats valid SQL.