Text

SQL Formatter

Format and prettify SQL queries with proper indentation and uppercase keywords. Supports SELECT, INSERT, UPDATE, JOIN, and all common SQL clauses.

Input SQL
Formatted SQL
Formatted SQL will appear here…

Related Tools

More free utilities you might find useful

Frequently Asked Questions

Quick answers to common questions

What SQL statements does this formatter support?+

It supports SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, and common clauses like WHERE, JOIN, GROUP BY, HAVING, ORDER BY, and LIMIT.

Should SQL keywords be uppercase?+

Uppercase keywords (SELECT, FROM, WHERE) are a widely adopted convention that improves readability. This tool uppercases keywords by default but you can disable it.

Does this validate SQL syntax?+

This is a formatting tool, not a SQL parser. It improves readability but does not guarantee syntactic correctness for all database dialects.

Is my SQL query private?+

Yes. All formatting happens in your browser. Queries are never sent to any server.