SQL formatter

Formats SQL for readability across several dialects. This only reformats tokens - it never executes SQL or connects to a database.

1 · Input

2 · Options

This formats SQL text only - it never executes SQL, never connects to a database, and does not validate that the query is semantically or executably correct.


What this does

Reformats SQL text for readability with a dialect-aware tokenizer, configurable keyword case (preserve/upper/lower) and indent width.

Formatting, not validation

This only reformats tokens - it never executes the SQL and never connects to a database, so a successfully formatted query is not a claim that it would run correctly, or run at all, against a real database.

Privacy

Formatted entirely in your browser - nothing is sent to a server.