Skip to main content

SQL Formatter

Paste a query and see it indented instantly, with the database recognized from the code: SQL Server, Oracle, MySQL, PostgreSQL and 9 more. Errors show line and column.

Your SQL never leaves the browser

Formatting options

Recognized by: TOP, NOLOCK, GETDATE(), dbo.
Mode
More options: alignment, AND/OR, lines between statements
Alignment

In columns, each clause's value always starts at the same column.

AND and OR

Original SQL

303 of 500.000 characters

Formatted SQL

Updates as you type.