SQL Formatter

Format, beautify, and minify SQL queries with syntax highlighting.

About SQL Formatting

This SQL formatter tokenizes your query, uppercases keywords (SELECT, FROM, WHERE, JOIN, etc.), applies proper indentation, and highlights syntax. It supports most standard SQL dialects.

FAQ

Is my SQL sent to a server?
No. All formatting is done locally in your browser.
Which SQL dialects are supported?
Most standard SQL including MySQL, PostgreSQL, SQLite, and SQL Server syntax.

Related Tools