Toolibra

JS Minifier & Beautifier

This JS minifier uses Terser, the same minifier used by most website build tools. Modern syntax and modules work. If your code has a syntax error, you see the exact line and column. Or switch to Beautify to read minified code.

🔒 Your files are processed on your device and are never uploaded.

How to use

  1. 1Paste your JavaScript or open a .js file.
  2. 2Choose the options, like shortening variable names or removing console.log.
  3. 3Copy or download the .min.js file.

Frequently asked questions

Does it support TypeScript or JSX?

No. Minify the JavaScript that your build produces. TypeScript types and JSX must be compiled first.

Will it change how my code works?

No. Terser only makes safe changes. Top-level names in modules are kept so imports and exports still work.

Is my data sent anywhere?

No. Everything runs in your browser, so your text and code stay on your device.

More free tools