DevTidy › Format › SQL Formatter

SQL Formatter

Paste a messy query and get readable SQL with consistent indentation and uppercase keywords. 🔒 Runs locally. Nothing uploaded.

Output

Pick your dialect for correct handling of quoting, functions and syntax. Production queries stay on your machine.

Frequently asked questions

Is my data uploaded?

No. DevTidy runs entirely in your browser. Your input is processed on your device in a background Web Worker and never sent to a server, so it is safe for API keys, customer data and production configs.

Which databases are supported?

Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), Oracle PL/SQL, BigQuery, Snowflake and Redshift.

Related tools

JSON FormatterXML FormatterJavaScript Beautifier