SQL Formatter
Beautify SQL queries with keyword casing and indentation. Format SELECT, JOIN, and WHERE — free and private in your browser.
Input SQL
Formatted SQL
Formatted SQL will appear here.
FAQ
What does this SQL formatter do?
It adds line breaks and indentation to SQL queries, uppercases (or lowercases) keywords, and makes SELECT, JOIN, and WHERE clauses easier to read.
Does it validate SQL syntax?
It focuses on formatting and readability, not full SQL parsing. Invalid SQL may still format, but always test queries against your database.
Is my SQL sent to a server?
No. Formatting happens entirely in your browser. Queries with sensitive table or column names never leave your device.