SQL Formatter

Format, beautify, and minify SQL queries with proper indentation and keyword casing. All processing happens locally in your browser.
Input
Drag & drop a file here

or click to browse • .sql, .txt

Options

Indentation

Keyword Style

Formatting

Output
Statistics
Input: 0 chars | Output: 0 chars

How to Use

1

Paste SQL

Enter or paste your SQL query into the input area.

2

Configure

Choose indent size, keyword casing, and formatting options.

3

Format & Copy

Click Format to beautify or Minify to compress, then copy.

Use Cases

Development
Format SQL for better readability during development.
Code Review
Standardize SQL formatting across your team.
Documentation
Create readable SQL examples for documentation.
Debugging
Format complex queries to identify issues more easily.
✓ Copied to clipboard!