Overview
JavaScript Minifier is a simple web page that shrinks JavaScript: paste code into the input box and it returns a compressed version with whitespace and comments removed, ready to copy. Smaller files download faster, which is why sites minify scripts before publishing them.
The tool is run by Toptal, the freelance talent company. The old javascript-minifier.com address now redirects to a page under toptal.com/developers, part of a small set of developer utilities there.
It also has a free API. You send a POST request with your code in an input field and get the minified result back as the response body, which makes it easy to call from a shell script or build step without installing anything. The documentation lists a payload size cap and a per-minute rate limit, and mentions no API key. An optional config field accepts minifier settings, and the documentation points to the SWC project for what those settings mean.
Categories
Features
- Paste-in minification of JavaScript in the browser page
- Copy-to-clipboard button for the result
- Free HTTP API that returns minified code
- No API key mentioned in the documentation
- Optional config parameter for minifier settings
- Clear error codes for malformed code and oversized requests
Privacy
See the official privacy policy. Code submitted through the API is posted to Toptal's servers for minification.
Pros & Cons
Pros
- Free, with no account
- The API can be called with a single curl command
- Nothing to install for an occasional job
- Backed by a large company, so it has stayed online for years
Cons
- Code sent through the API is processed on Toptal's servers
- The API is rate limited and caps the request size
- The page carries Toptal hiring promotions
- The original domain now redirects, so old links and API addresses may have changed
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Code Minifiers · Online-Toolz
Minifies CSS code to reduce file size.
Free Web -
Code Minifiers · Minifier.org
Minifies JavaScript and CSS.
Free No Signup Web -
Code Minifiers · CSS Minifier
Minifies CSS code.
Free No Signup Web API -
Code Minifiers · HTML Minifier
Original web demo of the open-source HTML Minifier, now deprecated; shrinks HTML and its inline CSS and JavaScript in the browser.
Open Source No Signup Web