JS Minifier

Minify JavaScript online to shrink file size and speed up your site. Paste your code or upload a .js file, pick a level, then copy or download the minified result. Free, no signup, nothing uploaded.

Minify level
Waiting for input
Minified output appears here.

How to minify JavaScript

1

Add Your Code

Paste your JavaScript into the box, or switch to the upload tab and drop in a .js file.

2

Pick A Level

Choose Light to strip comments and spacing, Standard to also shorten code, or Maximum to also rename variables for the smallest output.

3

Copy Or Download

The minified code appears below with the size saved. Copy it or download a .min.js file.

Pixellize free online tools illustration showing browser, file, and gear icons

Smaller JavaScript, Faster Pages

Minifying JavaScript removes everything a browser does not need to run your code. Comments, line breaks, and extra spaces all go, and the result is a single compact file that downloads and parses faster. On a busy page with several scripts, those saved bytes add up to a quicker load and a better experience for your visitors.

This tool does real minification, not a simple find and replace. It reads your code the way a browser does, so strings, regular expressions, and template literals stay intact. Standard mode shortens the code itself, and Maximum mode also renames local variables to single letters for the smallest output, while keeping the behavior exactly the same.

Paste your code or upload a file, pick a level, and watch the size drop. You see the before and after sizes and the percentage saved, then copy the result or download a min.js file. Everything runs in your browser, so your code never leaves your device.

Why Use Our JS Minifier?

Real Minification

More than stripping spaces. It rewrites your code safely, handling strings, regular expressions, and template literals without breaking them.

Three Levels

Light keeps things readable, Standard shortens the code, and Maximum renames local variables for the smallest possible file.

See The Savings

Every run shows the original size, the new size, and the exact percentage you saved.

Paste Or Upload

Paste code straight in or drop a .js file. The file is read on your device, never sent anywhere.

Copy Or Save

Copy the result with one click or download a ready .min.js file for your project.

Private By Design

All processing happens in your browser. Your code is never uploaded, logged, or stored.

Frequently Asked Questions

Common questions about minifying JavaScript.

What does minifying JavaScript do?
It removes comments, spaces, and line breaks, and can shorten the code and rename variables. The file gets smaller so it downloads and runs faster, while doing exactly the same thing.
What is the difference between the levels?
Light strips comments and whitespace only. Standard also rewrites the code to be shorter. Maximum does all of that and renames local variables to single letters for the smallest file.
Will minifying break my code?
No. The code is parsed properly, so strings, regular expressions, and template literals are kept intact. If your code has a syntax error, the tool tells you instead of producing broken output.
Is there a file size limit?
You can paste any size, and uploaded files are capped at 5 MB. Everything runs on your device, so very large files depend on your own browser and memory.
Does my code get uploaded?
No. The minifier runs entirely in your browser. Your code is never sent to a server, logged, or stored.
Is this JS minifier free?
Yes, it is completely free with no signup and no limits.
Scroll to Top