SQL Formatter

Format and beautify SQL queries with support for multiple dialects.

Runs on this device

Formatted output

Formatted SQL appears here

What formatting does not do

Formatting changes indentation, line breaks and letter case, not what the query does.

It does not check the query against your database, so a formatted query can still fail to run.

Pick the dialect that matches your database, because other dialects may reject its syntax.