About This Tool
SQL Formatter beautifies SQL for readability with indentation and optional uppercase keywords. It does not connect to a database and never executes queries. Formatting is processed locally in your browser β your SQL never leaves your device.
How to Use
- Paste your SQL into the input box
- Toggle uppercase keywords if desired
- Click Format
- Copy the formatted result
- Clear to format another statement
Common Use Cases
- Reviews: Make messy queries readable before code review
- Docs: Pretty-print examples for READMEs
- Debug: Spot missing commas and clauses faster
- Teaching: Show clean SQL to students
- Offline: Format without pasting into online DB tools