About TidySQL
TidySQL turns hard-to-read SQL into clean, consistently indented queries and back again. It is meant for the everyday moments when a query lands in front of you in the wrong shape: a single line from a log, ORM output in a stack trace, a colleague's report pasted into a chat.
Queries often contain schema details, customer data in literals or credentials in comments, so TidySQL never sends them anywhere. The formatting code is part of the page itself; there is no backend, no account and no analytics on what you paste.
It is built and maintained by Interhive OÜ, a small studio in Tallinn that makes tiny, dependable web tools.
What it does
- Format SQL
Clause-per-line layout with indented joins and conditions, powered by the sql-formatter library.
- Five dialects
Standard SQL, MySQL, PostgreSQL, SQLite and T-SQL, each with its own quoting and operators.
- Style options
Keyword case, indent width or tabs, and trailing or leading commas.
- Minify, copy, download
Collapse a query to one line, copy it to the clipboard or save it as a .sql file.