Rebex ZIP

ZIP and GZIP compression .NET library

Download 30-day free trial Buy from $199
using Rebex.IO.Compression;

// open a ZIP archive
using (var zip = new ZipArchive(@"c:\data\archive.zip"))
{
	// set password
	zip.Password = "TopSecret";

	// add all text documents to the ZIP archive
	zip.Add(@"c:\data\*.txt");
}
				
Show me more code...
ZIP, UnZIP, Deflate, ZLIB and GZIP compression library for .NET Framework. Makes it easy to create, modify, encrypt or extract ZIP archives.

Why Rebex ZIP?

File and directory operations made easy

Add or Extract a file from/to a filesystem or memory. Rename and move files. Check existing files. Or perform other single-file ZIP operations.

Or simply process many files at once. Add or extract whole directory structures. Use wildcards or file sets to specify which files to process.

Need to work with directories? List their content, create or rename them. You can even delete non-empty folders recursively.

Overwrite or rename files using a single line of code. Monitor progress or handle problems with events.

Raw compression and decompression streams

Core of the ZIP format is the DEFLATE compression algorithm. You can use Rebex ZIP's compression and decompression streams to deflate or inflate data directly. GZIP and ZLIB formats are also supported as well.

Many time-tested features

Rebex ZIP is a mature and stable component maintained since 2010. We have been adding new features year after year, inspired by user feedback. For example:

  • Compatible with WinZip, PKZIP, Info-ZIP (and many others).
  • Password protection (legacy ZIP 2.0 encryption method; WinZip-compatible AES‑128, AES‑192, AES‑256 encryption methods).
  • Large file support (over 4 GB).
  • Multi-file operations.
  • Multithreaded compression.
  • Progress monitoring.
  • Stream or file based operation.
  • Extract data to anything.
  • Recursive directory tree operations.
  • Wildcards support for adding, extracting and deleting files.
  • Advanced file filtering using the FileSet class.
  • Thread-safe.
  • FIPS 140-2 compliant mode.
  • Support for asynchronous operations including .NET 4.x-style task-based API.
  • Custom compression and decompression algorithm implementation - no dependency on any open-source or third-party compression library (unlike many others).

And many more...

Licensing and support

  • Royalty free redistribution.
  • Includes 1 year support contract.
  • Includes all new versions released during 1 year.

Platforms

.NET Framework

2.0, 3.0, 3.5, 3.5 SP1, 4.0, 4.5.x, 4.6.x, 4.7.x, 4.8 (32-bit and 64-bit)

.NET Core

1.1, 2.1, 2.2 (32-bit or 64-bit)

Mono

4.x, 5.x

Xamarin.iOS

Xamarin.iOS 10.3 or later

Xamarin.Android

Xamarin.Android 8.0 or later

Legacy platforms

.NET Compact Framework

3.5, 3.9

Learn more about supported standards and platforms.

Featured samples

View all 14 C# and VB.NET samples