Skip to main content

SQL Formatter

New

Re-indent and format SQL queries for readability, debugging, and consistent code review diffs.


A SQL formatter turns one-line or poorly spaced SQL into readable statements. It is especially helpful when you are debugging queries, inspecting logs, or reviewing changes in pull requests.

This tool normalizes whitespace, optionally uppercases key SQL keywords, and introduces newlines before common clauses like SELECT, WHERE, JOIN, and ORDER BY. The output is optimized for developer readability rather than perfect dialect parsing.

All processing happens locally. Your data never leaves your browser.