SQL Formatter
Format and beautify SQL queries online for free. This tool supports multiple SQL dialects including MySQL, PostgreSQL, SQL Server, SQLite, MariaDB, and BigQuery. Customize indentation size and keyword casing to match your team's style guide.
Ctrl/Cmd + Enter to format
Formatted SQL will appear here
How to Use This Tool
- Paste your SQL query into the input area, or click 'Load Sample' to try an example query.
- Select your SQL dialect (MySQL, PostgreSQL, etc.) and preferred indent size from the options bar.
- Toggle 'Uppercase Keywords' to automatically capitalize SQL keywords like SELECT, FROM, WHERE.
- Click Format or press Ctrl/Cmd+Enter to beautify your SQL. Copy the result with the Copy button.
Related Tools
{ }CSV๐.*
JSON Formatter & Validator
Pretty-print, validate, and minify JSON with syntax highlighting.
CSV to JSON Converter
Convert between CSV and JSON formats instantly.
Timestamp Converter
Convert Unix timestamps to dates and back. Live clock included.
Regex Tester
Test regex patterns in real time with match highlighting.