SQL Formatter
Format SQL queries across 8 dialects. Indent, uppercase keywords, minify mode. 100% browser.
You use this tool often? Pro includes files up to 500 MB and priority processing.
What is SQL Formatter?
Multi-dialect SQL formatter powered by sql-formatter. Consistent layout with uppercase keywords, 2/4/tab indent, and a minify mode.
How to use this tool?
Paste your SQL, pick the dialect and indent style, then copy the formatted query. Ctrl+Shift+F triggers formatting at any time.
Benefits
- 8 SQL dialects
- Indent 2 / 4 / tab
- Uppercase keywords
- Minify mode
- Syntax highlighting
- 100% browser
Frequently Asked Questions
- Which dialects are supported?
- Generic SQL, MySQL, PostgreSQL, SQLite, T-SQL (SQL Server), PL/pgSQL, BigQuery and Spark.
- Is my SQL sent to a server?
- No. The sql-formatter library runs entirely in your browser. No network calls.
- Can I minify the query?
- Yes, minify mode strips whitespace and comments to produce a compact one-line query.
Similar Tools
JSON Formatter
Validate, format, and minify JSON. Syntax highlighting and file import. 100% in the browser.
Use →HTML Formatter
Beautify or minify your HTML code online. Automatic indentation, whitespace cleanup. 100% browser-based, free.
Use →CSS / JS Minifier
Minify CSS or JavaScript to reduce your file sizes. 100% in the browser, free.
Use →Case Converter
Convert your text to 14 case formats: camelCase, PascalCase, snake_case, kebab-case, Title Case and more. Preserves accents. 100% browser.
Use →What is SQL Formatter?
Multi-dialect SQL formatter powered by sql-formatter. Consistent layout with uppercase keywords, 2/4/tab indent, and a minify mode.
How to use this tool?
Paste your SQL, pick the dialect and indent style, then copy the formatted query. Ctrl+Shift+F triggers formatting at any time.
Benefits
- 8 SQL dialects
- Indent 2 / 4 / tab
- Uppercase keywords
- Minify mode
- Syntax highlighting
- 100% browser
Frequently Asked Questions
- Which dialects are supported?
- Generic SQL, MySQL, PostgreSQL, SQLite, T-SQL (SQL Server), PL/pgSQL, BigQuery and Spark.
- Is my SQL sent to a server?
- No. The sql-formatter library runs entirely in your browser. No network calls.
- Can I minify the query?
- Yes, minify mode strips whitespace and comments to produce a compact one-line query.
Similar Tools
JSON Formatter
Validate, format, and minify JSON. Syntax highlighting and file import. 100% in the browser.
Use →HTML Formatter
Beautify or minify your HTML code online. Automatic indentation, whitespace cleanup. 100% browser-based, free.
Use →CSS / JS Minifier
Minify CSS or JavaScript to reduce your file sizes. 100% in the browser, free.
Use →Case Converter
Convert your text to 14 case formats: camelCase, PascalCase, snake_case, kebab-case, Title Case and more. Preserves accents. 100% browser.
Use →