All tools / SQL formatter
Give your queries some breathing room
SQLite SQL formatter
Readable indentation and consistent keywords. Your SQL stays in this browser and is never executed.
Paste SQLite SQL or load the example.
Formatting is not query validation
This tool uses the SQLite dialect of the open-source SQL Formatter library. It understands common SQLite syntax, comments, CTEs and multiple statements, but does not connect to a database or check that tables exist. Review changes before use.
For execution, see running SQL in DB Browser for SQLite. To inspect results, open the file in our local viewer.