SQL Formatter

Turn long one-line queries into readable, consistently indented SQL.

● Your files are processed locally in your browser and are not uploaded to our servers.

How it works

KadiTools uses the open-source sql-formatter library, which understands the syntax of each dialect (quoted identifiers, parameters, specific keywords). Clauses start on new lines, column lists are indented and keywords get a consistent case.

FAQ

Does it check my SQL?

It formats but doesn't validate against a database. Invalid SQL may still be formatted, or an error is shown when it can't be tokenized.