# Format SQL Queries

> Format and beautify SQL queries with syntax highlighting and dialect support. Nothing logged, nothing sent.

Live tool: https://lofttools.com/tools/dev-tools/sql-formatter

Category: Dev Tools

## How it works

1. **Paste SQL** — Paste your SQL query into the input area
2. **Format** — The query is formatted with proper indentation and keyword casing
3. **Copy result** — Copy the formatted SQL query

## FAQ

### Which SQL dialects are supported?

Standard SQL, MySQL, PostgreSQL, Microsoft SQL Server, and Oracle.

### Can I customize the formatting style?

Yes. Configure indentation, keyword casing, and comma placement.

### Is it safe to paste production data?

Yes. Formatting is a pure-JS parser running in your browser. Query strings with PII, internal table names, or production credentials stay on your device.

## Privacy

This tool runs entirely in the browser. Files are not uploaded to a server. They never leave the user's device.

## More

- All tools: https://lofttools.com/tools
- Category: https://lofttools.com/tools/dev-tools
- LLM index: https://lofttools.com/llms.txt
