JS Minifier Online — Free & Private
Minify JavaScript safely with the Terser parser.
JS Minifier
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.
- Parses JavaScript before removing unnecessary formatting.
- Preserves string values, template literals, regex syntax and automatic semicolon insertion.
- Keeps variable and property names.
- Processes the script locally and retains important license comments.
How to use JS Minifier
Minify JavaScript safely with the Terser parser. Everything runs in this tab — nothing is uploaded for the core job.
- Paste valid JavaScript.
- Minify JS.
- Review the output and copy it.
- 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 tools
Popular available tools for everyday tasks. Browse categories or search the full catalog.
Star any tool — it appears under Favorites on this device.
Merge PDF
Combine several PDFs into one, in the order you choose.
Split PDF
Cut one PDF into two at a page you pick.
Compress PDF
Shrink file size by re-encoding each page.
PDF to JPG
Export every page as a high-res image.
JPG/PNG to PDF
Turn a stack of photos into one PDF.
Watermark PDF
Stamp a text or image watermark — positioned, tiled, or layered behind content.
Sign PDF
Draw a signature and place it on any page.
OCR PDF
Recognize text in scanned or photographed PDFs, then get a searchable PDF or a plain text file.
Image Compressor
Compress JPG without losing quality — shrink images for the web without uploading.
JSON Formatter
Format, validate and minify JSON, with clear error messages.
EMI Calculator
Calculate the monthly EMI for a loan amount, rate and tenure.
QR Code Generator
Turn text or a URL into a downloadable QR code image.
How this actually works
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.
Questions people actually ask
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)