SQL Formatter
Developer utilities · Done in 3 steps
- 1Paste your SQL
- 2
- 3
About
Format and beautify SQL for PostgreSQL, MySQL, SQL Server, BigQuery, Snowflake and more, with keyword case, indent and layout options.
How to use it
- 1Paste a query or open a .sql file.
- 2Choose your SQL dialect.
- 3Set keyword case, indentation and layout.
- 4Copy or download the formatted SQL.
- You give
- One or more SQL statements
- You get
- Consistently indented SQL
- Good to know
- Formatting only — queries aren't validated against a schema or executed. Very dialect-specific syntax may need the matching dialect selected; procedural blocks (PL/pgSQL bodies) are formatted as plain text.
- Privacy
- Processed on your device. Nothing is uploaded, stored or logged.
- Last tested
- 2026-10-28
FAQ
Does it change what my query does?
No. Only whitespace and the case of keywords change. Identifiers and string values are left as you wrote them.
Which dialect should I pick?
The database you run the query on. Dialects differ in quoting (`backticks` vs "quotes"), parameters and special keywords, and the formatter needs to know which applies.
Go further with AI
Code review checklist
A severity-ranked review checklist for humans and AI reviewers covering correctness, security, data, performance, tests and maintainability.
Claude Code · Cursor · Claude
Bug reproduction template
Turn a vague bug report into minimal reproduction steps, ranked hypotheses and a failing test you can hand to a developer or coding agent.
Claude Code · Cursor · Claude
UI implementation brief
Write a precise brief for building a UI component with a coding agent: states, behaviour, accessibility, responsive rules and acceptance criteria.
Claude Code · Cursor · Claude
Accessibility review workflow
Review a component or page against WCAG 2.2 AA with automated checks, an AI code review and a short manual keyboard and screen-reader pass.
Claude Code · Cursor · Claude