Developer tool

SQL Formatter

Turn compact SQL into readable, indented queries directly in your browser.

query.sql
sql
RWLn 1, Col 1 1
Formatted SQLformatted-query.sql
formatted-query.sql

Formatted SQL will appear here

formatted-query.sql

Ready
Ln 1, Col 1UTF-8Formatted SQL

SQL Formatter

Format SQL into clean, readable statements.

How to use this tool

Paste an SQL statement and format it to make clauses and indentation easier to read. Copy the result into a review, documentation or your database editor.

Understanding the result

The formatter does not execute SQL or validate it against a database. Review dialect-specific syntax and quoted values before running the statement elsewhere.

Processing and privacy

Calculations, file conversion and text processing run in your browser. Your input is not uploaded to a conversion server. Keep source data and results separately. Some tools retain working state on this device so you can continue later.

Help improve this tool

Did this tool work the way you expected?

Send a quick report with a screenshot or example file. The tool name will be filled in for you.