Skip to content
#ziplib is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform.
Branch: master
Clone or download
Numpsy and piksel Merge PR #326: Dispose TarArchive output streams in case of an exception
* Refactor TarArchive.ExtractEntry() to use using blocks for stream disposal
* Unit test to check that TarArchive.ExtractContents() doesn't leak file handles when an exception occurs
Latest commit 6f245b3 Jun 18, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Merge PR#287, Update issue template to remove checkboxes Nov 18, 2018
benchmark/ICSharpCode.SharpZipLib.Benchmark Merge PR #330: Add a benchmarks project using BenchmarkDotNet Jun 15, 2019
docs Minimal text to direct developers to either generated API documentati… Aug 18, 2017
samples/ICSharpCode.SharpZipLib.Samples Switch samples from source reference to Nuget package reference (curr… Aug 17, 2017
src/ICSharpCode.SharpZipLib Merge PR #326: Dispose TarArchive output streams in case of an exception Jun 18, 2019
test Merge PR #326: Dispose TarArchive output streams in case of an exception Jun 18, 2019
tools Fix CI for tagged builds Dec 22, 2018
.editorconfig Merge branch 'master' of into… Apr 26, 2016
.gitattributes Merge branch 'master' of into… Apr 26, 2016
.gitignore Fix travis (#238) Jul 1, 2018
.travis.yml Fix travis (#238) Jul 1, 2018 Merge branch 'master' of into… Apr 26, 2016
ICSharpCode.SharpZipLib.sln Merge PR #330: Add a benchmarks project using BenchmarkDotNet Jun 15, 2019
LICENSE.txt Update LICENSE.txt so that Github recognizes it Jul 1, 2018 Merge PR #190, Add link to API in README Oct 27, 2018
Rebracer.xml Enable Nuget package generation as well as Xml doc gen Aug 17, 2017
appveyor.yml Merge PR #299: Update AppVeyor config for tagged versioning (#299) Dec 22, 2018
appveyor.yml.old For testing purposes, rename appveyor.yml Aug 18, 2017

SharpZipLib Build status Join the chat at

The SharpZipLib project is looking for a new maintainer - please read State of the Union August 2017


SharpZipLib (#ziplib, formerly NZipLib) is a compression library that supports Zip files using both stored and deflate compression methods, PKZIP 2.0 style and AES encryption, tar with GNU long filename extensions, GZip, zlib and raw deflate, as well as BZip2. Zip64 is supported while Deflate64 is not yet supported. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language). The creator of SharpZipLib put it this way: "I've ported the zip library over to C# because I needed gzip/zip compression and I didn't want to use libzip.dll or something like this. I want all in pure C#."

SharpZipLib was originally ported from the GNU Classpath library for use with SharpDevelop, which needed gzip/zip compression. bzip2 compression and tar archiving were added later due to popular demand.

The SharpZipLib homepage has precompiled libraries available for download, API documentation, a link to the forum for support, release history, samples and more.


This software is now released under the MIT License. Please see issue #103 for more information on the relicensing effort.

Previous versions were released under the GNU General Public License, version 2 with an exception which allowed linking with non-GPL programs.

Namespace layout

Module Namespace
BZip2 implementation ICSharpCode.SharpZipLib.BZip2.*
Checksum implementation ICSharpCode.SharpZipLib.Checksum.*
Core utilities / interfaces ICSharpCode.SharpZipLib.Core.*
Encryption implementation ICSharpCode.SharpZipLib.Encryption.*
GZip implementation ICSharpCode.SharpZipLib.GZip.*
LZW implementation ICSharpCode.SharpZipLib.Lzw.*
Tar implementation ICSharpCode.SharpZipLib.Tar.*
ZIP implementation ICSharpCode.SharpZipLib.Zip.*
Inflater/Deflater ICSharpCode.SharpZipLib.Zip.Compression.*
Inflater/Deflater streams ICSharpCode.SharpZipLib.Zip.Compression.Streams.*


SharpZipLib was initially developed by Mike Krüger. Past maintainers are John Reilly, David Pierson and Neil McNeight.

And thanks to all the people that contributed features, bug fixes and issue reports.

You can’t perform that action at this time.