Convert colors between HEX, RGB, HSL, and CMYK — online color converter with live preview.
Open toolMinify JS
Safely shrink JavaScript by stripping comments and whitespace - never joins lines.
Privacy and limitations
Your tool input is processed in this browser rather than submitted to our server. Large inputs can be slow or exceed your device's memory. Keep a copy of the original and check the output before relying on it; formatting or conversion does not establish that the content is correct or safe.
Read the privacy policyAbout Minify JS
This tool shrinks JavaScript by stripping comments and unnecessary whitespace - safely. Unlike aggressive minifiers that join lines together, this one deliberately never merges two lines, because JavaScript's Automatic Semicolon Insertion (ASI) means joining lines without a full parser can silently change what your code does (a bare `return` followed by a newline behaves completely differently from `return` followed directly by a value on the same line).
How to use this tool
- 1Paste your JavaScript, or upload a .js file.
- 2Click Run - comments are stripped and blank/indented whitespace is removed.
- 3The size reduction percentage is shown next to the output.
- 4Copy the result or download it as a .js file.
Common use cases
Frequently asked questions
Why doesn't this achieve the tiny output size that Terser or UglifyJS produce?
Those tools use a full JavaScript parser to safely rewrite code - renaming variables, joining statements, removing dead code. Building that from scratch isn't realistic for a browser-based utility, and a naive line-joining approach can silently break code due to Automatic Semicolon Insertion. This tool trades maximum compression for a guarantee that your code's behavior never changes.
Are comments inside strings affected?
No - the tool tracks string and template literals character by character, so something like a URL containing // inside a string is never mistaken for a comment.
For production deployments, what should I use instead?
A bundler-integrated minifier like Terser (used by webpack) or esbuild, which parses your code into an AST and can safely make far more aggressive size reductions than a text-based tool like this one.
Is my code sent anywhere?
No - everything runs locally in your browser.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Converters"
}