SQL Formatter
Format and indent SQL queries for readability.
This is a heuristic formatter for common SQL clauses (SELECT, JOIN, WHERE, GROUP BY, etc.) — it does not parse a full SQL grammar, so unusual dialect syntax may not format perfectly.
SQL Input
Formatted SQL
About the SQL Formatter
Paste minified or messy SQL and get it reformatted with keywords on new lines and consistent indentation, making SELECT, JOIN, WHERE, and GROUP BY clauses easy to scan.
Examples
Format SELECT
select id,name from users where active=1Output
SELECT id,
name
FROM users
WHERE active=1Related tools
GraphQL Query Formatter
Dev Utilities
Format and indent GraphQL queries and mutations.
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Chmod Calculator
Dev Utilities
Unix permission calculator: checkboxes, octal, and symbolic.
Code Comment Stripper
Dev Utilities
Remove comments from JS, HTML, Python, or SQL source.
Code Diff Merger
Dev Utilities
Side-by-side line diff of two code snippets with stats.
Cron Expression Builder
Dev Utilities
Build cron expressions visually with a human-readable description.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-07 · Runs entirely in your browser