Skip to main content

Developer & Code

JavaScript Minifier

Process code with JavaScript 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 JavaScript 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.

JavaScript Minifier processes developer text in your browser. For a correct result, test the minified result separately.

compact JavaScript source Processing runs in the browser.

Instructions

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

Example

Input: function add(a,b){ return a+b; }

Settings: JavaScript Minifier: run JavaScript Minify with default settings

Result: compact JavaScript source

Limits

  • JavaScript Minifier: minification can make debugging harder
  • JavaScript Minifier: The operation does not detect a different language automatically.
  • JavaScript Minifier: Processing stays in the browser.