SQL Formatter & Beautifier

Format and beautify SQL queries for readability. Supports SELECT, INSERT, UPDATE, DELETE and more. Free, runs in your browser.

How to Use the SQL Formatter

  1. Paste your SQL query into the input box.
  2. Choose your preferred indentation (2 spaces, 4 spaces, or tab).
  3. Choose whether keywords should be UPPERCASE or lowercase.
  4. Click Format SQL to beautify, or Minify to compress.

Supported SQL

Works with SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, JOINs, subqueries, and most standard SQL dialects including MySQL, PostgreSQL, SQLite and SQL Server.

Privacy: All formatting happens locally in your browser. No SQL is sent to any server.

More Free Online Tools

Explore 32 fast, private, browser-based tools at Wivrix.