Skip to main content

Developer & Code

SQL Minifier

Process code with SQL Minify and review the transformed output. Enter the code, choose the processing options, then copy the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Your result appears here

Process code with SQL Minify and review the transformed output. Enter the code, choose the processing options, then copy the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

SQL Minifier processes developer text in your browser. For a correct result, test the compact query in a safe environment.

compact SQL text Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Run SQL Minify with default settings.
  3. Review the output against a small known SQL Minifier example.
  4. Keep the source code or markup until the result passes its target parser.

Example

Input: SELECT id FROM users;

Settings: SQL Minifier: run SQL Minify with default settings

Result: compact SQL text

Limits

  • SQL Minifier: minification does not make a query safe
  • SQL Minifier: The operation does not detect a different language automatically.
  • SQL Minifier: Processing stays in the browser.