IRONSOFTWAREHOME
Extract TAR
using IronZip;

// Extract TAR
IronTarArchive.ExtractArchiveToDirectory("output.tar", "extracted");
Imports IronZip

' Extract TAR
IronTarArchive.ExtractArchiveToDirectory("output.tar", "extracted")
NuGet Download
PM > Install-Package IronZip
Extract TAR

Extract TAR

TAR files are most commonly used for bundling and compressing multiple files and directories into a single archive. However, extracting them could be troublesome at times, as they are used in conjunction with GZIP and BZIP2. However, with the versatility of IronZIP, we can simply call the IronTarArchive class to extract the contents of the TAR for the last layer and then further extract it in the second format, all within a single library.

Extracting TAR Archive

To begin with, we need to include the IronZip namespace in our project, which provides access to its functionalities. We can then use the IronTarArchive class to extract the contents of the TAR file with the method ExtractArchiveToDirectory.

This function is designed to unpack the contents of a TAR file into a specified directory. The initial parameter should be the full path to the TAR file that you wish to extract. The second parameter indicates the destination folder where the unpacked files will be stored.

Learn to Create, Read, and 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