SQL Formatter

Make long, single-line SQL queries readable for code reviews, documentation and debugging.

Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Dialect
Keywords
Indent

How to use SQL Formatter

  1. Paste your SQL.
  2. Choose the dialect and keyword case.
  3. Copy the formatted query or save it as .sql.

Frequently asked questions

Does formatting change what the query does?

No. Only whitespace and keyword case change. The logic of the query stays the same.

Can I format several queries at once?

Yes. Separate them with semicolons and each one is formatted with a blank line between.

Is my data sent to a server?

No. Everything runs in your browser, so API keys, tokens, configs and customer data never leave your machine.

Related tools

All Developer Tools →