SQL Formatter
Format, beautify, and minify SQL queries with proper indentation and keyword highlighting.
Frequently Asked Questions
What SQL statements does this formatter support?▾
This formatter supports all common SQL statements including SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, ALTER, DROP, JOINs (INNER, LEFT, RIGHT, FULL, CROSS), UNION, subqueries, and more.
Can I minify SQL to save space?▾
Yes. The minify option removes all unnecessary whitespace, newlines, and comments to produce the most compact SQL possible, ideal for embedding in code or APIs.
Does this tool uppercase SQL keywords?▾
Yes, by default all SQL keywords are converted to uppercase for readability. You can toggle this option off to preserve your original keyword casing.
Is my SQL data safe?▾
Yes. All formatting happens entirely in your browser using JavaScript. No SQL queries are ever sent to a server.