# Merge EPUB Learn how to merge EPUB files, combine EPUB files into one file programmatically in C# language using GroupDocs.Merger for .NET library. ## How to merge EPUB files in C\# You can easily combine multiple EPUB files into one using [GroupDocs.Merger](https://products.groupdocs.com/merger/net) library API and all the files content will be preserved. The following example demonstrates how to merge EPUB files with several lines of C# code: * Create an instance of [Merger](https://reference.groupdocs.com/merger/net/groupdocs.merger/merger) class and pass source EPUB file path as a constructor parameter. You may specify absolute or relative file path as per your requirements. * Add another EPUB file to merge with [Join](https://reference.groupdocs.com/merger/net/groupdocs.merger/merger/join) method. Repeat this step for other EPUB 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 EPUB file as parameter. ```csharp // Load the source EPUB file using (Merger merger = new Merger(@"c:\sample1.epub")) { // Add another EPUB file to merge merger.Join(@"c:\sample2.epub"); // Merge EPUB files and save result merger.Save(@"c:\merged.epub"); } ``` ### About EPUB File Format Files with .EPUB extension are an e-book file format that provide a standard digital publication format for publishers and consumers. The format has been so common by now that it is supported by many e-readers and software applications. For example, on Mac OS, the pre-installed Books software provides the support for opening such files. In addition, there are a lot of compatible software available for smartphones, tablets and computers. ### 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 EPUB Live Demo GroupDocs.Merger for .NET provides an online [**EPUB Merger App**](https://products.groupdocs.app/merger/epub), which allows you to try it for free and check its quality and accuracy. [!["Merge EPUB"](https://docs.groupdocs.com/merger/net/images/merge/merge-epub.png)](https://products.groupdocs.app/merger/epub)