JSZip is a javascript library for creating, reading and editing .zip files, with a lovely and simple API.

Current version : v3.2.0 License : JSZip is dual-licensed. You may use it under the MIT license or the GPLv3 license. See LICENSE.markdown.

Example var zip = new JSZip(); zip.file("Hello.txt", "Hello World

"); var img = zip.folder("images"); img.file("smile.gif", imgData, {base64: true}); zip.generateAsync({type:"blob"}) .then(function(content) { // see FileSaver.js saveAs(content, "example.zip"); }); Run! This browser doesn't support blobs, this demo won't work :( See here for more info Installation With npm : npm install jszip With bower : bower install Stuk/jszip With component : component install Stuk/jszip Manually : download JSZip and include the file dist/jszip.js or dist/jszip.min.js

Installed ? Great ! You can now check our guides and examples !

Support

Opera Firefox Safari Chrome Internet Explorer Node.js Yes Yes Yes Yes Yes Yes Tested with the latest version Tested with 3.0 / 3.6 / latest version Tested with the latest version Tested with the latest version Tested with IE 6 / 7 / 8 / 9 / 10 Tested with node.js 0.10 / latest version

Getting help

Having trouble ? We'd like to help !

Try the FAQ, it has answers to common questions.

If you're looking for information about a specific method, try the documentation.

Check the examples.

Report bugs in our Bug tracker.

Test status