zip.js

A JavaScript library to zip and unzip files

Notable features

This library depends on the Promise, the TypedArray, the Streams APIs and these ones optionally:

Compatibility

This library works fully with the latest versions of Chrome, Firefox, Safari, Microsoft Edge, and Deno.

Demos

Documentation

Installation

Warning: Make sure that the code is parsed in UTF-8, e.g. served with the HTTP header "Content-Type: application/javascript; charset=utf-8", otherwise filenames might be corrupted when reading zip files.

You can get the code via:

You can also install manually the library by adding zip.min.js from the /dist directory in your project. If you don't want to use web workers, add zip-full.min.js instead. Then, include zip.min.js (or zip-full.min.js) in your HTML page: