SQL Minifier

Compress SQL queries by removing extra whitespace and line breaks.
SQL input
SQL minify options

Need readable output? Open SQL Formatter.

Tool Introduction

Compact SQL for config files, query strings, logs, seed data, migration comments, and dashboard snippets while keeping quoted strings safe.

Choose how comments are handled, normalize keyword case, keep statements on one line or split each statement onto its own line, and control semicolon and spacing rules before copying the result.