SQL Formatter
Format and beautify SQL queries with proper indentation, consistent keyword casing, and configurable settings. Supports SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, and more. Free, instant, 100% private.
About SQL Formatter
Format and beautify SQL queries with consistent indentation, keyword casing, and proper line breaks. Supports SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, ALTER, and DROP statements. All processing happens in your browser — no data is ever uploaded.
Smart Formatting
Automatically indents SQL with keywords on new lines. Configurable indent width (2 or 4 spaces). Handles nested subqueries, JOINs, and complex WHERE clauses.
Keyword Casing
Choose between UPPERCASE and lowercase for SQL keywords. Consistent casing makes queries easier to read and maintain across your team.
Minification
Compress SQL queries into a single line for compact storage. Great for embedding queries in application code or saving space in configuration files.
100% Private
All processing happens in your browser. Your SQL queries, database schemas, and sensitive data never leave your device. No server-side processing.