ToolBunny LogoToolBunny
Back to Homepage
SQL Query Formatter

Format, beautify, and standardize your SQL queries directly in the browser.

Input SQL
Formatted SQL
About This Tool

The SQL Query Formatter is an indispensable tool for data analysts, backend engineers, and database administrators. Often, SQL queries written in code bases or extracted from logs are minified into a single, unreadable line. This utility takes that messy SQL string and instantly applies standardized indentation, capitalization, and formatting. It runs completely inside your browser, ensuring that your sensitive database schema and queries remain entirely private and are never uploaded to any server.

How to Use
  1. Paste your unformatted, minified, or messy SQL into the "Input SQL" text area.
  2. Select your preferred SQL Dialect (Standard SQL, PostgreSQL, MySQL, etc.) for syntax-specific formatting.
  3. The beautifully indented and capitalized query will instantly appear in the "Formatted SQL" text area.
  4. Click the "Copy" button in the corner of the output box to copy it directly to your clipboard.