SQL Formatter
Format, beautify, and minify SQL queries with dialect-aware rules.
How to Format SQL Online for Free
1. Paste your SQL query into the input editor, or load the sample.
2. Pick your dialect, keyword casing, and indentation.
3. Press Format to beautify, or Minify to compact it to a single line.
4. Copy the result or download it as a .sql file.
SQL Formatting in Your Browser
Your queries are formatted entirely inside your browser. No SQL — schema names, table names, or data — is ever uploaded to or stored on a server.