Use the form below, or the HTTP API, to compress JavaScript code.
UglifyJS compression can be used as an HTTP service by
sending a POST
or GET
request to this
URL, with any of the parameters listed below either embedded in
the URL, or in an application/x-www-form-urlencoded
request body. The response body will contain the compressed code
in case of a successful request, or an error message when
returning an error HTTP status code.
code_url
http:
and https:
protocols are
supported. Invalid or errorring URLs will be ignored. This
parameter can be given multiple times to concatenate the
scripts at those locations together.js_code
code_url
can be given, in
which case the code passed in js_code
will end up
after the code from URLs.utf8
source_map
download
Content-Disposition
header to the
response, which causes typical browsers to download the
response under the given filename.header
This API is loosely based on Google's Closure API, and should be compatible for simple uses.
If you are planning to use this for something that might generate a lot of traffic, please discuss it with us first, to help you host this service on your own server.