Free online JavaScript minifier
JS Minifier
Minify JavaScript snippets with a lightweight browser-side compressor for quick sharing and tests.
Developer Tools
Browser based
Runs on the current page
Copy-ready
Use the output where you work
No sign-in
Open the tool and get moving
Developer tool
Minify JavaScript
Compress JavaScript snippets with lightweight comment and whitespace removal.
Output will appear here.
Original
106 chars
Minified
0 chars
Saved
100%
Built for the task
Format, validate, encode, decode, and test.
Fast browser utilities for common implementation, debugging, and content-cleanup tasks.
More tools
Continue with related developer tools.
JSON Formatter
Format, prettify, and minify JSON in the browser with instant syntax feedback.
JSON Validator
Validate JSON syntax, inspect parse errors, and view a clean formatted preview.
CSV ↔ JSON Converter
Convert CSV to JSON or JSON to CSV with header, delimiter, type-detection, and formatting controls.
YAML ↔ JSON Converter
Convert YAML to formatted JSON or turn JSON into readable YAML with configurable indentation.
SQL Formatter
Format SQL with dialect-aware rules, keyword casing, indentation, and query-spacing controls.
UUID Generator
Generate random UUID v4 values for tests, records, fixtures, and temporary identifiers.
FAQ
JS Minifier questions.
Is this a replacement for Terser or SWC?
No. It is a lightweight browser tool for snippets. Use a production minifier in your build system for shipped bundles.
Does it rename variables?
No. It removes comments and extra whitespace, but it does not perform advanced mangling or tree shaking.
Custom software