Format SQL

Format SQL using the selected dialect.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Paste your source, choose the supported options, then process. Inspect or download the complete result.

Limits and behavior

This is a formatter, not a database syntax validator. No SQL is executed. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Beautify a SQL query

Format SQL statements into readable lines and indentation while respecting supported dialect syntax.

Is SQL formatting the same as validating a database query?

No. This does not connect to a database or confirm that referenced tables and columns exist.

Related tools: minify sql · format json

Built on Hatchable