🗄️ SQL Formatter

Beautify and minify SQL queries. Uppercase keywords, configurable indent, comma style. Runs locally — no data sent.

About SQL Formatter

Unformatted SQL is notoriously painful to read — especially queries generated by ORMs, scraped from logs, or written in a hurry without indentation. This tool reformats any SQL query into clean, readable code in seconds: keywords are uppercased, nested clauses are properly indented, and long queries are broken into logical sections. It supports multiple SQL dialects and lets you configure indent size and comma placement.

You can also minify SQL to compress it for use in logs, config files, or URL parameters. Paste in unformatted SQL from any source, hit format, and get something you can actually read and review. Runs entirely locally — no query data is sent anywhere, which matters when working with production schemas or sensitive data.

format SQL SQL beautifier pretty print SQL SQL minifier query formatter