SQL Formatter
Paste messy SQL and get it back cleanly indented - pick your dialect, indent size and keyword case, or minify it to one line.
Readable SQL in one paste
A query copied out of application logs or an ORM arrives as one long, unbroken line. This formatter reparses it and prints it with each clause on its own line and consistent indentation, so you can actually read the joins and the where conditions. It updates live as you type, so tweaking a query and re-formatting is instant.
Dialects, indenting and case
SQL is a family of dialects, not one language. Choosing MySQL, PostgreSQL, SQLite, T-SQL or BigQuery tells the parser which keywords and quoting rules apply, so backticks, double-quoted identifiers and dialect-only functions are handled properly rather than tripping it up. Set the indent to two or four spaces to match your codebase, and force keywords to upper or lower case - or preserve them exactly - with the keyword-case option.
Format or minify
Format is what you want most of the time. Minify does the reverse: it strips every run of whitespace outside quoted strings down to a single space, collapsing the whole statement onto one line. That is handy when you need to embed a query in a JSON payload, a log message or a single config field without newlines. String literals are left untouched, so the data your query carries never changes.
Handling the data around your queries too? The JSON formatter tidies API payloads, CSV to JSON turns exports into records to insert, and JSON to CSV does the reverse for reporting.