Input

Action
SQL dialect
Indentation
Keyword case

Minify preserves comments, hints, quoted content and significant line breaks. Indentation and keyword case apply only to Format.

MySQL assumes backslash escapes; PostgreSQL assumes standard_conforming_strings is on. Stored programs, client commands and SQL mode changes are not supported.

Result

Run the tool to see the result.

How to use

Choose a dialect and paste SQL or open a UTF-8 file up to 1 MB. Format supports indentation and keyword case; Minify reduces whitespace while preserving comments, hints and quoted content. Download the result as SQL or reuse it as input. SQL is processed locally and is never executed.