Those Boring Tools
Developer ToolsPrivate by design

SQL Formatter

Paste a SQL query below to reformat it with consistent indentation and keyword casing for easier reading.

How to use this tool

  1. 1Paste your SQL query into the input box.
  2. 2Click "Format" to pretty-print it.
  3. 3Copy the formatted query.

Frequently asked questions

Does this validate my SQL syntax?+

No — it reformats spacing and keyword casing only. It doesn't parse or validate against a specific database dialect.

Keep the boring tools boring.

If this saved you five minutes of nonsense, you can help keep the free tools running.

Buy the toolbox a coffee