Rebex ZIP

ZIP and GZIP compression .NET library

Download 30-day free trial Buy from $199
More .NET libraries
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. 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.

Efficient on-the-fly processing of ZIP archives is supported as well.

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 library 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 within 1 year.

Platforms

.NET

8, 7, 6, 5

.NET Framework

3.5 SP1, 4.0-4.8.1

.NET Core

3.1

Mono

6.0 or higher

Xamarin.iOS

13.10 or later

Xamarin.Android

10.1 or later

Learn more about supported standards and platforms.

Legacy platforms

(not included in standard product packages - see more)

 

.NET Compact Framework

3.5/3.9

.NET Framework

2.0-3.5
 

Featured samples

View all 12 C# and VB.NET samples