SQL Formatter
SQL Formatter
Format messy SQL queries instantly. Supports MySQL, PostgreSQL, and SQLite with proper indentation, keyword uppercasing, and a minify mode for production use.
Format SELECT/INSERT/UPDATE
Keyword Uppercasing
Smart Indentation
MySQL/PostgreSQL/SQLite
Minify Mode
Free · No credit card · 50 credits/day
SQL Statement Reference
Every SQL statement type the formatter supports, with its purpose and a quick example.
| Statement | Purpose | Example |
|---|---|---|
| SELECT | Retrieve data | SELECT * FROM users WHERE active = 1; |
| INSERT | Add new rows | INSERT INTO users (name) VALUES ('Alice'); |
| UPDATE | Modify existing rows | UPDATE users SET active = 0 WHERE id = 5; |
| DELETE | Remove rows | DELETE FROM users WHERE id = 5; |
| CREATE | Create database objects | CREATE TABLE orders (id INT PRIMARY KEY); |
| ALTER | Modify existing objects | ALTER TABLE users ADD COLUMN age INT; |
| DROP | Delete database objects | DROP TABLE temp_data; |
Frequently Asked Questions
Format Your SQL in Seconds
Stop squinting at minified queries. Clean, readable SQL makes your whole team faster.
Get started freeFree · No credit card · 50 credits/day