Skip to content
Toolbench

SQL formatter

Format SQL queries with clean indentation and line breaks. Free online SQL formatter for MySQL, PostgreSQL and more.

Runs on our server

Also with the sql beautifier

About this tool

Paste a long one-line SQL query to get it neatly formatted with keywords on their own lines, so joins and conditions are easy to read.

How to use it

  1. 1 Enter the sQL.
  2. 2 Select Beautify and copy or download the result.

Questions

Do you store what I enter?

No. Your input is processed to give you the result and isn’t saved.

Is this tool free?

Yes. It’s free to use with no sign-up and no limits for normal use.