Files stay on your device Use JS Minifier ↓

JS Minifier Online — Free & Private

Minify JavaScript safely with the Terser parser.

No sign-up required Files stay on your device Works offline once loaded

Loading the tool workspace…

Minify JavaScript with Terser while preserving variable names. A JavaScript parser distinguishes strings, regular expressions, template literals and comments, so URLs and significant whitespace are retained. Compression transforms and name mangling are disabled. The tool never executes your script.

The minifier is a local text transform. Your script is not uploaded.

Large files and OCR need sufficient device memory; review the downloaded result before using it.

Minify JavaScript safely with the Terser parser. Everything runs in this tab — nothing is uploaded for the core job.

  1. Paste valid JavaScript.
  2. Minify JS.
  3. Review the output and copy it.
  4. Keep the original source for future editing.

Privacy proof for JS Minifier

This tool processes input in your browser. Open DevTools → Network while you run it to check the requests. Some tools need downloaded libraries on their first use.

Popular available tools for everyday tasks. Browse categories or search the full catalog.

Star any tool — it appears under Favorites on this device.

Available tools process your files and text on your device. Choose the operation you need, check its supported inputs and limits, and keep the original file until you have reviewed the result. PDF compression offers a lossless mode and optional image-based modes; image-based exports lose selectable text. Scanned PDFs need OCR for text extraction. OCR language models may need an initial download. Some catalog operations are still being completed and are clearly marked as unavailable. A current browser and sufficient device memory are required. Optional sign-in stores activity metadata, not your documents.

Does it rename variables?

No. Name mangling and compression transforms are disabled.

Can it handle URLs and regex literals?

Yes. They are parsed as JavaScript syntax rather than mistaken for comments.

Does it support TypeScript or JSX?

Compile TypeScript and JSX to JavaScript first.

Does it run the code?

No. Terser parses and prints source text.

From our blog: How to Use JS Minifier Online (Free & Private)