SQL Formatter
Turn long one-line SQL into neatly indented queries with uppercase keywords and each clause on its own line. Supports MySQL, PostgreSQL, SQL Server, SQLite and more.
How to use the SQL Formatter
- 1
Fill in the details
Type or paste your input in the fields above. Example values are already there so you can see how it works.
- 2
Run the tool
Press the button under the fields. Your result appears right below the tool.
- 3
Copy or save it
Copy the result, download it or print it. Change any value and run it again as often as you like.
About this tool
Turn long one-line SQL into neatly indented queries with uppercase keywords and each clause on its own line. Supports MySQL, PostgreSQL, SQL Server, SQLite and more.
It is one of 319 free tools on RexBD and one of 40 in Developer. It works on any phone or computer, opens instantly and needs no app or sign-up.
Who uses it
- ๐ปDevelopersFormat, test and convert data without opening an IDE.
- ๐StudentsSee how encodings, formats and regex really work.
- ๐ ๏ธSupport teamsRead JSON, logs and tokens without installing anything.
Common questions
Is the SQL Formatter free?
Yes, completely. Visitors can use it 3 times without an account, and free members can use it as often as they like. There is no paid plan.
Is my data uploaded anywhere?
No. The SQL Formatter runs inside your own browser, so your text, numbers and files stay on your device and are never sent to RexBD.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, tablets and computers, with nothing to install.
Can I use the result for work?
Yes. Everything the tool creates is yours to use in personal or business projects. For money, tax or legal figures, please double-check anything important before you rely on it.