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.
What to expect
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.
Runs client-side. Your data never leaves your browser.
No ads, no trackers, no popups. Pure focus.
Paste code or upload files. Both modes supported.
Share output with teammates via a permanent link.
Adapts to your system preference automatically.
Fully responsive. Works on any screen size.
More tools coming
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.