Skip to content
Ad: top-banner (320x50)

SQL Formatter

Pretty-print and format SQL queries with dialect-aware rules

Your data never leaves your device
Input
Output
Ad: sidebar (300x250)
Ad: mid-banner (300x250)

Frequently Asked Questions

  • Which SQL dialects are supported?

    Seventeen dialects including standard SQL, MySQL, PostgreSQL, SQLite, BigQuery, MariaDB, DB2, PL/SQL, N1QL, Redshift, Snowflake, Spark, Trino, Transact-SQL (MS SQL Server), SingleStore, and Hive.

  • Can it format multiple queries at once?

    Yes. Paste multiple queries separated by semicolons and all of them will be formatted. You can adjust how many blank lines separate queries (1 or 2).

  • Does it validate my SQL?

    The formatter performs basic parsing but is not a full SQL validator. It will flag syntax errors it encounters during formatting but will not verify that tables, columns, or functions exist.

  • Is my query stored anywhere?

    No. Formatting runs entirely in your browser using sql-formatter (an MIT-licensed JavaScript library). Your SQL never leaves your device.