SQL Formatter – Free Online Tool
Format and beautify SQL queries with proper indentation and keyword highlighting.
SELECT u.id, u.name, o.total FROM users u INNER JOIN orders o ON u.id = o.user_id WHERE o.total > 100 AND u.active = true ORDER BY o.total DESC LIMIT 10;
How to Use SQL Formatter
- 1
Paste SQL
Paste your SQL query into the input area.
- 2
View Formatted
See your query formatted with proper indentation and uppercased keywords.
- 3
Copy
Copy the formatted SQL to your clipboard.
Common Use Cases
- ✦Cleaning up one-line SQL queries
- ✦Preparing queries for code review
- ✦Formatting stored procedures
Share
Share a link to this tool. Results can be passed via URL parameters.
https://buildutilities.com/share/sql-formatterFrequently Asked Questions
Also available as
More Data Tools
Tools for working with structured data formats like JSON, CSV, YAML, and XML.
{ } JSON Formatter✓J JSON ValidatorJ→C JSON to CSV ConverterC→J CSV to JSON ConverterY→J YAML to JSON ConverterX→J XML to JSON Converter
View all Data tools