SQL Formatter

Format SQL queries with proper indentation and keyword capitalization

🔒 100 % im Browser🆓 Für immer kostenlos⚡ Kein Signup
Hinweis: Das Tool-Interface unten ist aktuell nur auf Englisch verfügbar. Wir übersetzen die UIs Stück für Stück. Dieses Tool auf Englisch ansehen →

So funktioniert's

  1. 1
    Paste your SQL

    Drop any SQL query - even messy, single-line queries.

  2. 2
    Pick indent style

    Choose 2 spaces, 4 spaces, or tabs; keywords can be UPPER or lower case.

  3. 3
    Copy the result

    Get a cleanly formatted query ready to paste into your editor or migration.

Über SQL Formatter

Free online SQL formatter. Paste any SQL query - SELECT, INSERT, UPDATE, DDL - and get back cleanly indented output with keywords in uppercase and clauses on their own lines. Works across MySQL, PostgreSQL, SQL Server, SQLite, and BigQuery dialects. SQL Formatter auf 712 Tools läuft komplett in deinem Browser über native JavaScript APIs - kein Server sieht je deine Daten. Das heißt: sofortige Ergebnisse, volle Privatsphäre und keine Upload-Limits.

Ob für eine Debugging-Session, einen schnellen Sanity Check oder einen Produktions-Incident - dieses Tool ist kostenlos so oft nutzbar, wie du willst. Keine Wasserzeichen, kein Signup und keine Ads im Tool selbst.

Häufige Fragen

Which SQL dialects are supported?

Standard ANSI plus dialect-specific keywords from MySQL, PostgreSQL, SQL Server, SQLite, and BigQuery. Rare vendor extensions may not indent perfectly.

Does it validate my SQL?

No. It only reformats - a syntax error in your SQL will still appear in the output. Use your database's EXPLAIN for validation.

Are comments preserved?

Yes. Both -- line comments and /* block comments */ are kept in place.

Is my query uploaded?

No. Formatting runs entirely in your browser.