Developer & Data

SQL Formatter

Reformat SQL statements with consistent indentation and line breaks.

№ 023Runs locally

What this tool does

SQL Formatter. Reformat SQL statements with consistent indentation and line breaks.

When to use it

Use it to review long queries, compare clauses, or tidy SQL before sharing it.

How to use

  1. Try this sample input first: select id,name from users where active=1.
  2. Choose or adjust the options this tool provides; leave unrelated settings at their defaults.
  3. Run the tool and read any validation or status message. Correct the input format before trying again if needed.
  4. Check whether the result matches the example output: SELECT id, name FROM users WHERE active = 1. Then copy or download it.

Your input and files are processed in this browser. They are not uploaded by this toolbox.

Input and output example

Sample input
select id,name from users where active=1
Sample output
SELECT id, name
FROM users
WHERE active = 1