Formatter · SQLite
Format SQLite SQL online
Reformat SQLite queries against SQLite's own grammar: consistent indentation, aligned clauses and uppercase keywords. Paste one-line or ORM-generated SQL and get structured, reviewable output.
1Paste your SQLite query into the editor.
2Press Format — or ⌘↵.
3Copy clean, highlighted SQL.
Why format SQLite?
SQLite's grammar is compact but has its own quirks — AUTOINCREMENT, flexible typing, and functions like strftime and json_extract. The formatter formats to SQLite's rules so these read cleanly.
Great for the ad-hoc queries you run against a local .db file or an app's embedded database.