IRONSOFTWAREHOME
Extract GZIP
using IronZip;

// Extract GZIP
IronGZipArchive.ExtractArchiveToDirectory("output.tgz", "extracted");
Imports IronZip

' Extract GZIP
IronGZipArchive.ExtractArchiveToDirectory("output.tgz", "extracted")
NuGet Download
PM > Install-Package IronZip
Extract GZIP

Extract GZIP

GZIP (GNU ZIP) is a standard compression tool on Unix-like systems that shrinks files to save space and speed up transfers. It works best on single files, which are given a .gz extension and can be easily restored. To handle multiple files, it's common to first bundle them into a TAR archive and then compress the entire package, resulting in a .tar.gz or .tgz file.

Extracting GZIP Archive

We can easily access the functionalities of the IronZIP namespace in our project to utilize it. Specifically, the IronGZIPArchive class provides a method called ExtractTGZArchiveToDirectory, which allows us to extract the contents of a TGZ (tar.gz) file.

The ExtractTGZArchiveToDirectory function in the IronGZipArchive class is designed to unpack the contents of a TGZ file into a specified directory. The first parameter required is the full path to the TGZ file, while the second parameter indicates the destination folder. Developers can rely on this process's effectiveness and security.

Explore How to Create, Read & Extract ZIP Files
View on GitHub

Ready to Get Started?

Nuget Downloads 23,187Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required