Skip to content

SQL formatter

Make your SQL queries readable (PostgreSQL, MySQL, SQLite and more). Runs in your browser.

AvailableIn your browserInput: Text

How to use: SQL formatter

  1. Paste the SQL query.
  2. Choose the dialect (MySQL, PostgreSQL, SQL Server…).
  3. Copy the formatted query.

What it accepts and what you get

Input
SQL up to 500,000 characters.
Output
SQL with consistent indentation and keywords.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • Formatting does not validate the query or check that it runs on your database.
  • Nothing is executed against any database.