Skip to main content

SQL Formatter

Beautify and format SQL queries — keywords uppercase, clean indentation. Runs in your browser — nothing is sent to a server.

How to Use the SQL Formatter

  • Paste your SQL query into the left panel.
  • Choose your preferred indent size (2 or 4 spaces) and keyword case.
  • Click Format SQL or wait for the auto-format after you stop typing.
  • Use the Copy button to copy the result, or Download .sql to save as a file.
  • Try the Quick Examples to see the formatter in action with real SQL patterns.

Specifications

Accepts
Text — type or paste
Gives you
.sql download · copy to clipboard
Where it runs
Your browser — the file is never uploaded
Sign-up
None
Cost
Free, with no usage limits

Related guide

How to Format SQL Queries for Readability and Debugging Background reading on this page's topic