SQL Formatter: Beautify & Standardize SQL Online

Paste unformatted SQL and get it reformatted with consistent indentation, keyword casing, and line breaks — pick a dialect (Snowflake, PostgreSQL, MySQL, BigQuery, Redshift, SQL Server, SQLite, Spark, or generic SQL) so keywords specific to that engine are recognized correctly. Optionally case identifiers/functions/data types the same way as keywords, and keep or strip comments.

This is a formatter, not a validator: it reflows whitespace and casing, it doesn't check whether the query is logically correct, and it runs entirely in your browser — nothing you paste in is sent anywhere.