How it works
SQL formatting improves readability by adding consistent indentation, line breaks, and keyword casing to your queries. Well-formatted SQL is easier to review, debug, and maintain.
This tool supports 13 SQL dialects and handles complex queries including subqueries, CTEs, JOINs, window functions and more. Large dumps are formatted in the background without freezing the page.
Quick & easyPrivacy & security
This SQL formatter runs entirely in your browser. No queries are ever sent to a server — the formatting happens locally using JavaScript.
Queries reveal table names and business rules: they are formatted in your browser and never sent.
Runs in your browser