SQL Formatter

Format SQL queries for MySQL, PostgreSQL, SQL Server, SQLite, BigQuery and more.

What is a SQL formatter?

A SQL formatter rewrites a query with each clause on its own line, consistent indentation and uniform keyword case, making long or generated SQL easy to read and debug.

How to use the SQL Formatter

    Frequently asked questions

    Does it run or check my query against a database?

    No. It formats the text; it does not connect to any database.

    Can it format several queries at once?

    Yes, separate them with semicolons.

    Is my SQL uploaded?

    No, formatting happens in your browser.