SQL FORMATTER
SQL formatter, beautify in one click.
Turn messy SQL into neatly indented statements. Supports standard SQL, MySQL, PostgreSQL, SQL Server (T-SQL), Oracle (PL/SQL), Spark, BigQuery, Snowflake and more, with upper/lower/preserve keyword case. Powered by sql-formatter; SQL stays local.
Everything runs locally in your browser
Which dialects are supported?
Built-in rules for standard SQL, MySQL, MariaDB, PostgreSQL, SQL Server (T-SQL), Oracle (PL/SQL), DB2, Spark, BigQuery, Snowflake, Redshift, Trino and more — handling each one’s functions, quoting and syntax.
FAQ
Is my SQL uploaded?
No. Formatting runs locally; only the sql-formatter library is fetched from a CDN once. Your SQL is never sent.
Does formatting change semantics?
No. It only adjusts whitespace, indentation and line breaks (and optional keyword case), never the logic or identifiers.