Skip to main content
Formatters 100% Client-Side

SQL Query Formatter

Format, indent, and prettify standard SQL queries for PostgreSQL, MySQL, MariaDB, and SQLite with keyword standardisation.

Raw SQL Query
Prettified SQL

How to Use This Tool

  • Paste any standard SQL query (compatible with PostgreSQL, MySQL, MariaDB, SQLite, and BigQuery).
  • Click Format SQL to standardize clause spacing, newline breaks, and keyword capitalization.
  • Click Minify SQL to collapse complex queries into a single line for command-line runners.

Privacy Guarantee

All operations are executed 100% client-side inside your browser sandbox. Code, markdown, and text never leave your computer.