# SharpCompress

> Pure C# library to read and write zip, tar, 7z, rar, gzip, bzip2, xz, zstd and more archives

Source: https://talira.ai/catalog/sharpcompress-zsg2hf7h
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / compression](https://talira.ai/categories/libraries/compression), [languages / dotnet](https://talira.ai/categories/languages/dotnet)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Adam Hathcock](https://talira.ai/orgs/adamhathcock.md)

SharpCompress is a compression library written in pure C# for .NET Framework 4.8, .NET Standard 2.0 and 2.1, and .NET 6, 8 and 10. It reads RAR, 7z, zip, tar, bzip2, gzip, lzip, xz, Zstandard, ARC, ARJ, ACE and LZW, and writes zip, tar, bzip2, gzip, lzip, Zstandard streams and 7z archives. Its main feature is forward-only reading of non-seekable streams, so large archives can be processed as they download, alongside random-access archive APIs; every I/O operation has an async version, and the codecs can be swapped through compression providers.

## Links

- GitHub: https://github.com/adamhathcock/sharpcompress

## Problems it solves

- extract a RAR or 7z file in a .NET app without shelling out to 7-Zip
- unpack a large tar.gz as it downloads in C# without saving it to disk first
- create zip and tar.gz archives from C# code

## Features

- unrar, un7zip, unzip, untar and decompress gzip, bzip2, xz, zstd, lzip
- writes zip, tar, gzip, bzip2, lzip, Zstandard and 7z
- forward-only reading of non-seekable streams, such as downloads
- async APIs and swappable compression providers

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 1.00, adoption 0.68, momentum 0.37, community 0.87, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 280 commits in the last 90 days
- latest release 0.50.12 5 days ago
- 2.6k GitHub stars
- 149 contributors
- backed by Adam Hathcock

## Sources

[^1]: https://github.com/adamhathcock/sharpcompress/blob/master/LICENSE.txt (checked 28 Nov 2026)
[^2]: https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/SharpCompress.csproj (checked 28 Nov 2026)
