SQL Formatter
Format and beautify your SQL queries with proper indentation and uppercase keywords. Supports SELECT, JOIN, subqueries, and more.
Format SQL
Paste your SQL query below
Related Tools
JSON Formatter
Format and validate JSON data with syntax highlighting.
XML Formatter
Format and beautify XML documents with proper indentation.
CSV Viewer
View, sort, and filter CSV data in an interactive table.
Frequently Asked Questions
What SQL dialects are supported?
The formatter supports standard SQL syntax including MySQL, PostgreSQL, SQLite, and SQL Server common keywords and structures.
Does it format subqueries?
Yes. The formatter handles nested subqueries and indents them properly based on their nesting level.
Is my SQL query uploaded to a server?
No. All processing happens entirely in your browser. Your queries never leave your device.
Can I toggle uppercase keywords?
Yes. There is a checkbox to enable or disable uppercase conversion of SQL keywords like SELECT, FROM, WHERE, etc.