How to use
Paste SQL or choose a local file, pick the dialect that matches your query, set indent and keyword case, then press Format SQL. Copy or download the current result.
SQL formatter
Choose the dialect, indent, and keyword case, then format in a local browser worker. Source stays separate from the result.
0 characters · 0 / 1,048,576UTF-8 bytes
Quick feedback
One tap is enough. You can ignore this and keep working.
Thanks — that helps us improve.
Paste SQL or choose a local file, pick the dialect that matches your query, set indent and keyword case, then press Format SQL. Copy or download the current result.
Formatting runs in a local browser worker. Query text is never sent to a database, remote API, analytics payload, URL, or BeanNest processing request.
Supported dialects are Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server / T-SQL, BigQuery, and Snowflake. This tool does not execute queries, open database connections, substitute credentials or placeholders, or claim stored-procedure coverage. Source is limited to 1 MiB. Large results may hide the on-page preview while Copy and Download remain available.
Keep checking
Format JavaScript, TypeScript, CSS, HTML, Markdown, YAML, and related web languages with Prettier locally in your browser without executing source.
Open tool →Validate, pretty-format, or minify strict JSON locally with useful parse errors, copy, and safe file download.
Open tool →Encode UTF-8 text to standard Base64 or Base64URL and strictly decode it back to text without sending source content away.
Open tool →Convert explicit Unix seconds or milliseconds to UTC/local/ISO time and convert local or UTC dates back to epoch values.
Open tool →