Formatter · Coming Soon

SQL Formatter & Beautifier

Format any SQL query — SELECT, INSERT, UPDATE, DELETE — for MySQL, PostgreSQL, SQL Server, Oracle and more. Control keyword casing and indentation.

Get notified the day we launch. No spam, ever.

--Days
--Hours
--Minutes
--Seconds

Built for developers

Database-agnostic SQL formatter with keyword case control (UPPER, lower, as-is), 4 indentation levels, and support for all major SQL dialects.

Instant & in-browser

Runs client-side. Your data never leaves your browser.

🚫
Zero ads

No ads, no trackers, no popups. Pure focus.

📂
File & paste support

Paste code or upload files. Both modes supported.

🔗
Shareable links

Share output with teammates via a permanent link.

🌗
Dark & light mode

Adapts to your system preference automatically.

📱
Mobile friendly

Fully responsive. Works on any screen size.


Related tools

OpenFormatter is launching with 30+ tools on day one.


About this tool

OpenFormatter's SQL Formatter supports all major SQL dialects including MySQL, PostgreSQL, Microsoft SQL Server, Oracle, and SQLite. Format SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, and DROP statements. Control keyword and identifier casing (uppercase, lowercase, keep as-is). Supports 2-space, 3-space, 4-space, and tab indentation. Works with invalid or partial SQL statements too.

sql formattersql beautifiersql pretty printformat sql onlinesql indentationsql code formatterbeautify sqlsql editor onlinefree sql formatterprettify sqlsql query formattersql viewersql parser onlinesql formatter toolsql pretty printeronline sql formattermysql formatterpostgresql formattersql formatter no signupsql formatter freeformat sql querysql beautify onlinesql indent toolsql format checkersql query beautifier