# How to merge archives to ZIP using C# Learn how to merge archives to ZIP file, combine archives into one ZIP file programmatically in C# language using GroupDocs.Merger for .NET library. ## ZIP Merger .NET API [GroupDocs.Merger](https://products.groupdocs.com/merger/net) allows developers to combine multiple archive documents in the preferred order and save them as a single ZIP file. ## About ZIP File Format A file with .zip extension is an archive that can hold one or more files or directories. The archive can have compression applied to the included files in order to reduce the ZIP file size. ZIP file format was made public back in February 1989 by Phil Katz for achieving archiving of files and folders. The format was made part of PKZIP utility, created by PKWARE, Inc. Right after the availability of available specifications, many companies made ZIP file format part of their software utilities including Microsoft (since Windows 7), Apple (Mac OS X ) and many others. ### Download and Configure Use the [downloads section](https://downloads.groupdocs.com/merger/net) to download API DLLs or MSI installer or NuGet: ```csharp PM> Install-Package GroupDocs.Merger ``` ### How to merge archives to ZIP file The following example demonstrates how to merge archives to ZIP file with several lines of C# code: * Create an instance of [Merger](https://reference.groupdocs.com/merger/net/groupdocs.merger/merger) class and pass source archive file path as a constructor parameter. You may specify absolute or relative file path as per your requirements. * Add another archive file to merge with [Join](https://reference.groupdocs.com/merger/net/groupdocs.merger/merger/join) method. Repeat this step for other archive documents you want to merge. * Call [Merger](https://reference.groupdocs.com/merger/net/groupdocs.merger/merger) class [Save](https://reference.groupdocs.com/merger/net/groupdocs.merger/merger/save) method and specify the filename for the merged archive file as parameter. ```csharp // Load the source archive file using (Merger merger = new Merger(@"c:\sample1.zip")) { // Add another archive file to merge merger.Join(@"c:\sample2.tar"); // Add next archive file to merge merger.Join(@"c:\sample3.rar"); // Merge archive files and save result merger.Save(@"c:\merged.zip"); } ``` ### Code Examples Please find more [use-cases and complete C# sources]({{< ref "merger/net/showcases.md" >}}) of our backend and frontend examples and try them for free! ### Merge ZIP Live Demo GroupDocs.Merger for .NET provides an online [**Archive to ZIP Merger App**](https://products.groupdocs.app/merger/archive-to-zip), which allows you to try it for free and check its quality and accuracy.