JavaScript Tools

JS Minification

Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.

Reduce JS payload by stripping spaces, newlines and comments. Example: trim a 40 KB file down before shipping.
Reduce JS size
  1. Paste your source.
  2. Compress it to fewer bytes.
  3. Copy the minified code.
Example: compact a helper file for faster loads.
Use when you want a smaller download.
Client-sideRuns entirely in your browser — your data never leaves your device.

Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.

JS Minification is a free JavaScript Tools utility that runs entirely in your browser — nothing you enter is uploaded.

JavaScript input
Minified JavaScript

How to use JS Minification

  1. Enter or paste your text into the input field to begin.
  2. JS Minification updates the output automatically as you type.
  3. Use Copy to keep or reuse the result.

About this tool

Parses JavaScript scripts or modules with bundled Babel 7.26.4 and generates compact code without transpilation, name mangling or execution. Strings, regular expressions, template text and statement boundaries are handled by the parser. Ordinary comments are removed; /*! notices and @license/@preserve comments remain. TypeScript, JSX and unsupported syntax are errors. Input is limited to 2 MiB of UTF-8 text. Byte totals use UTF-8; compaction is not guaranteed to make every input smaller. Source maps and exact source-text introspection are not preserved.

Everything JS Minification does happens on your own device. JS Minification is a free JavaScript Tools utility that runs in your browser, doing its work on the input you provide without a backend.

Because it runs on your device, it is fast and private and works offline once loaded. Your input never leaves the page, and no account or install is required.

Frequently asked questions

How do I use JS Minification?

Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.

Does JS Minification cost anything?

The tool is free to use. Its local parser accepts up to 2 MiB of UTF-8 input per operation.

Is my input private in JS Minification?

Yes — your input never leaves your device; JS Minification does all the work in your browser.

Does JS Minification work on mobile?

Yes — JS Minification is just a web page and runs on any modern browser, including phones and tablets.

Related javascript tools