⊞
SQL Formatter
Runs in your browserInput
Output
Ready — zero server calls
Related Tools
How to Use
- Paste your SQL query into the input field.
- Click Format to get properly indented SQL with uppercase keywords.
- Supports standard SQL, MySQL, PostgreSQL, and other dialects.
Format SQL Queries
Paste messy or minified SQL and get perfectly formatted output with proper indentation, uppercase keywords, and aligned clauses. Supports SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, and complex queries with subqueries and CTEs.
Why Format SQL?
Formatted SQL is dramatically easier to read, debug, and review. This tool uses the sql-formatter library supporting MySQL, PostgreSQL, SQL Server, MariaDB, and standard SQL syntax. Your queries never leave your browser.