SQL Formatter

Format SQL queries with proper indentation and keyword capitalization

🔒 100 % in-browser🆓 Gratuit pour toujours⚡ Pas de signup
Note : L'interface de l'outil ci-dessous n'est actuellement disponible qu'en anglais. On traduit les UI une par une. Voir cet outil en anglais →

Comment ça marche

  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.

À propos de 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 sur 712 Tools tourne entièrement dans ton browser via des APIs JavaScript natives - aucun server ne voit jamais tes données. Résultats instantanés, privacy complète, et aucune limite d'upload.

Que ce soit pour une session de debug, un sanity check rapide ou un incident en prod, cet outil est gratuit à utiliser autant que tu veux. Pas de watermarks, pas de signup et pas d'ads dans l'outil.

Questions fréquentes

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.