JS Minifier & Beautifier

A conservative JS formatter — strip // comments, dedent, beautify.

100% private — no uploads Developer ToolsFree & unlimited Read tutorial

See how it works

Watch a quick simulation of this tool in action — no file needed.

How to use JS Minifier & Beautifier

Follow these steps — everything happens instantly in your browser.

  1. 1

    Step 1. Paste your JavaScript into the input box.

  2. 2

    Step 2. Click Minify to strip // comments and dedent lines, or Beautify for simple re-indenting.

  3. 3

    Step 3. Check the byte savings indicator.

  4. 4

    Step 4. Copy the output with one click.

Why use this tool

Frequently asked questions

Everything you might want to know about js minifier & beautifier.