SQL Formatter

Format messy SQL queries into readable, indented code with uppercase keywords — ideal for code reviews and debugging slow queries.

SQL Formatter – how it works

  1. Paste your SQL code (or open a file).
  2. SQL is already selected — adjust indentation if you like.
  3. Click Format, then copy or download the result.

Frequently asked questions

Does it support MySQL and PostgreSQL?

Yes, standard SQL plus common MySQL and PostgreSQL syntax is formatted.

Is my code stored?

No. Code is formatted on the fly and never saved.

Is it really free?

Yes. No sign-up, no watermark and no trial — just open the page and use it.

Related tools