All tools / Formatters

SQL Formatter

Tidy messy SQL queries into readable lines.

Runs in your browser · your data never leaves your device
Ad space

How it works

Major clauses start on their own line and keywords are uppercased. It is a quick tidy-up for common queries, not a full SQL parser, so review very complex statements by eye.

Frequently asked questions

Does it change my query?

Only whitespace and the case of keywords. Check string values that contain words like and or from.

Related tools