SQL Formatter
Privacy First: Your files are processed securely. Whenever possible, processing happens in your browser and files are never stored on our servers.
Paste any SQL statement and format it for readability. Clause keywords (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, etc.) are moved to their own lines. Comma-separated columns are each placed on a new line with consistent indentation. Choose keyword case: UPPERCASE (standard), lowercase, or preserve original casing. Set indentation to 2 or 4 spaces. Switch to Minify mode to compress the query by removing comments and collapsing whitespace - useful for embedding SQL in code. Download the output as a .sql file. Supports SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, ALTER TABLE, and most standard SQL constructs. All formatting runs in your browser.
How to Use
- 1Paste your SQL query in the left input panel
- 2Choose your options: keyword case (UPPER/lower/keep) and indentation (2 or 4 spaces)
- 3Toggle Minify if you want to compress rather than format
- 4Click Format SQL (or Minify SQL) - the result appears in the right panel
- 5Click Copy or Download .sql to use the output
Features
- Formats SELECT, INSERT, UPDATE, DELETE, and DDL statements
- Clause keywords (SELECT, FROM, WHERE, JOIN, GROUP BY, etc.) placed on new lines
- Comma-separated columns each indented on their own line
- Keyword case options: UPPERCASE, lowercase, or preserve original
- Indentation options: 2 or 4 spaces
- Minify mode strips comments and collapses whitespace
- Download formatted or minified output as .sql file
- 100% browser-based
Frequently Asked Questions
Community Feedback
Like
Total Rating
No ratings yetReviews
No reviews yet. Be the first!
Rate & Review
Was this tool helpful?
Rate this tool:
Write a Review