SQL Formatter

Beautify or minify SQL for MySQL, PostgreSQL, SQL Server, Oracle, SQLite and more.

How to format SQL

  1. Paste your query and choose your database dialect.
  2. Pick keyword case and indentation.
  3. Copy or download the formatted SQL.

Your queries are formatted in your browser and never sent to a server.

Frequently Asked Questions

No. Only whitespace and keyword case change; the query logic stays the same.

Yes. Separate them with semicolons.

Related Tools

JSON Formatter

Format and validate JSON data with syntax highlighting.

Open Tool →

Password Generator

Generate strong secure passwords with custom options.

Open Tool →

QR Code Generator

Generate QR codes for URLs, text, email, and more.

Open Tool →

Markdown to HTML

Convert Markdown to clean, sanitized HTML with a live preview. Supports tables and task lists.

Open Tool →