SmartQueryTools

SQL Formatter

Format and beautify messy SQL queries. Supports PostgreSQL, MySQL, SQLite and more. Open the result directly in the SQL Query editor. Runs in your browser.

Frequently Asked Questions

Which SQL dialects are supported?

sql-formatter supports Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, BigQuery, Hive, SparkSQL, and more. Select your dialect for dialect-specific keyword handling and formatting rules.

Does formatting change the meaning of my SQL?

No. Formatting only adjusts whitespace, indentation, and capitalisation of keywords. The query executes identically before and after formatting.

Can I open the formatted SQL directly in the SQL Query editor?

Yes — use the "Open in SQL Editor" button to send the formatted SQL to the SmartQueryTools SQL workspace where you can run it against uploaded data files.

Is my data private?

Yes — completely. Everything runs locally in your browser. Nothing is sent to any server, and nothing is retained after you close the tab.

Related Tools