⚙️

JavaScript Minifier & Beautifier

Minify JavaScript to cut file size, or beautify minified code back to readable. Runs entirely in your browser — your code never leaves the page.

In: 0 B Out: 0 B
Input JavaScript
Output
Advertisement
How to use
  1. Paste your JavaScript code into the input pane on the left.
  2. Click Minify to strip whitespace and comments, or Beautify to format minified code.
  3. Copy the result — the stats bar shows input/output size and percent saved.
FAQ

It is great for quick, one-off shrinking — strips comments, collapses whitespace, and removes redundant semicolons. For full mangling (variable renaming, dead-code elimination) use a build tool like esbuild, Terser, or SWC.

Yes. Template literals, arrow functions, classes, async/await, optional chaining — all preserved. String and template-literal content is left untouched so escape sequences and embedded expressions stay intact.

No. The minifier and beautifier run 100% in your browser. Nothing is transmitted — paste freely.