Code Snippet

Create ZIP Files in JavaScript With JSZip

Unzip ZIp php



Zip file format is very useful while compressing files. It is widely used over the internet for reducing size of a file before uploading or downloading. I have already posted some articles on creating zip files with PHP. In this article, i will show you the way of creating zip files with the help of javascript.
There is a nice javascript api JSZIP which generated zip files. All you need to include this js file in your document.

See the example below in which we are going to add 2 text files into a zip with the help of javascript.
Include this javascript api in your webpage where you want to create a zip file. See the jsZip example code below

Download the API



To Top