SQL Formatter
Format SQL with keyword capitalization, indented joins and nested subqueries, and compact minify mode to turn messy queries into readable reports offline.
More Developer Tools
About the author
Written and maintained by the Tool4SaaS team. Every tool runs locally in your browser and is tested in-house for accuracy. Last updated: .
Frequently asked questions
Generic ANSI with keyword uppercasing; preserves strings and comments.
No, keyword uppercasing and whitespace formatting run locally; your query never leaves the browser.
Yes, it is free, works offline in your browser, and your data never leaves your device.
How to use SQL Formatter
- Paste SQL: Paste your query.
- Format: Click Format or Minify.
- Copy: Copy formatted SQL.