SQL Formatter
Format messy SQL queries with clean line breaks, indentation and uppercase keywords.
100% free No signup Private & offline-ready Works in your browser
About the SQL Formatter
Turn a long single-line query into readable, indented SQL. Each clause starts on a new line, selected columns and conditions are listed one per line, and keywords can be uppercased. String literals are left untouched. Works with MySQL, PostgreSQL, SQL Server and SQLite syntax.
Frequently asked questions
Is the SQL Formatter free?
Yes. The SQL Formatter on Apex Tool Station is 100% free with no signup and no watermark. Browser tools have no usage limits.
Are my files or data uploaded to a server?
No. Everything runs locally in your browser using JavaScript. Your files and text never leave your device, which makes it safe for private documents.
Does it work on mobile?
Yes. The tool works on any modern browser on Android, iPhone, Windows, Mac and Linux.