RunToolz iconRunToolz
Welcome to RunToolz!

SQL Formatter

Format and beautify SQL queries with support for multiple dialects.

Input SQL

Formatted SQL

How to use

  1. Paste your SQL query in the input area
  2. Select the SQL dialect (MySQL, PostgreSQL, etc.)
  3. Choose an indent style (Standard, Tabular Left, or Tabular Right)
  4. Click Format to beautify or Minify to compress
  5. Copy the result using the Copy button

What is SQL Formatter?

SQL Formatter is a tool that transforms messy, hard-to-read SQL queries into clean, well-structured code. It applies consistent indentation, capitalizes keywords, and organizes complex queries with JOINs and subqueries.

Key Features
  • Uppercase keywords (SELECT, FROM, WHERE)
  • Proper indentation for nested queries
  • Support for 6 SQL dialects
  • Handles complex JOINs and subqueries
Benefits
  • Easier code review and debugging
  • Consistent team coding style
  • Minify for production use
  • 100% client-side processing

Frequently Asked Questions