FreeDev Tools

JavaScript Minifier

Minify JavaScript by stripping comments and whitespace β€” strings are preserved.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Paste your JavaScript

    Drop the source code into the input panel or click Load Example.

  2. 2

    Minification runs instantly

    Comments are stripped and whitespace collapsed as you type.

  3. 3

    Copy the result

    The footer comment shows original vs. minified size and percent saved.

Frequently Asked Questions

It strips // and /* */ comments and collapses unnecessary whitespace while carefully skipping over string and template literals so your data is never corrupted. The output reports how many bytes you saved.