JavaScript Tools

JS Minifier Online

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

Minify JavaScript online for faster delivery. Example: paste source, get a single compact line.
Online JS minifier
  1. Paste JavaScript.
  2. Minify it in the browser.
  3. Copy the compact output.
Example: minify a utility module for delivery.
Use for quick in-browser minification.
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 Minifier Online 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 Minifier Online

  1. Type or paste your text into JS Minifier Online's input area.
  2. Watch the output update instantly while you adjust the text.
  3. When it looks right, Copy to save it.

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.

There is no server behind JS Minifier Online. JS Minifier Online handles your input locally and returns the result instantly, with no sign-up.

It is designed to do one job well and stay out of your way. Nothing you enter is uploaded, and it keeps working offline once the page has loaded.

Frequently asked questions

What does JS Minifier Online do?

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

Is JS Minifier Online free to use?

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

Does JS Minifier Online upload my data?

No — JS Minifier Online processes everything locally in your browser, so nothing you enter is uploaded or stored.

Does JS Minifier Online work on mobile?

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

Related javascript tools