SQL Formatter
Paste messy SQL and get it formatted with proper indentation, capitalization, and line breaks. Supports MySQL, PostgreSQL, SQLite, T-SQL, and PL/SQL dialects.
Output…
Frequently Asked Questions
What SQL dialects are supported?
Standard SQL (ANSI), MySQL/MariaDB, PostgreSQL, and SQLite. Each dialect has slightly different keyword support and syntax rules. Select the dialect matching your database for best results.
What does 'tabular' indent style mean?
Tabular style aligns SQL keywords in columns like a table. 'tabularLeft' aligns keywords to the left column, 'tabularRight' to the right. Standard style is the classic 2-space indent. Tabular style is preferred by many DBAs for readability.