Eskillsfy

Home / Tools / Data and formats

SQL Formatter

Format messy SQL into readable, indented queries.

Runs in your browserFree, no sign-upOpens .sql, .txt
Loading tool…

How to use it

  1. Paste a query or open a .sql file.
  2. Choose Format or Minify and your keyword case.
  3. Copy or download the result.

About this tool

Puts each clause (SELECT, FROM, JOIN, WHERE, GROUP BY, ORDER BY) on its own line, indents column lists and conditions, and upper-cases keywords. Strings and comments are left exactly as they are. Minify turns a query back into one line for logs or code.

Your input is processed on your device. Nothing is sent to a server or stored.

How it works, and how to build your own →

Questions

Which databases does it support?
Standard SQL as used by PostgreSQL, MySQL, SQLite, SQL Server and BigQuery. It only changes whitespace and keyword case.
Data and formats

More tools like this

All data and formats