# Merge PowerPoint Presentations This article demonstrates how to merge PowerPoint presentation files of PPT, PPTX, ODP and many other formats with a couple of Python via .NET code lines and GroupDocs.Merger for Python via .NET. GroupDocs.Merger for Python via .NET makes it easy to combine multiple PowerPoint presentations into a single file programmatically. All slides, shapes, animations, embedded media, and other content are preserved — no Microsoft PowerPoint or third-party desktop software required. Common presentation file extensions include **PPTX**, **PPT**, **PPSX**, and **PPS**. PPTX is the default XML-based format introduced with Microsoft Office 2007; PPT is the older binary format supported by earlier versions of PowerPoint. ## Steps to merge PPTX files 1. Create an instance of the `Merger` class and pass the path to the first (base) PPTX file. 2. Call `merger.join()` with the path to each additional PPTX file to append. 3. Call `merger.save()` with the desired output path to write the merged file. {{< tabs "merge-powerpoint-example" >}} {{< tab "merge_powerpoint_documents.py" >}} ```python from groupdocs.merger import Merger def merge_powerpoint_documents(): # Load the first presentation as the merge base with Merger("./input.pptx") as merger: # Append the second PowerPoint presentation merger.join("./input2.pptx") # Save the combined presentation merger.save("./output.pptx") if __name__ == "__main__": merge_powerpoint_documents() ``` {{< /tab >}} {{< tab "input.pptx" >}} {{< tab-text >}} `input.pptx` is a sample file used in this example. Click [here](https://docs.groupdocs.com/merger/python-net/_sample_files/developer-guide/merge/powerpoint/input.pptx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "input2.pptx" >}} {{< tab-text >}} `input2.pptx` is a sample file used in this example. Click [here](https://docs.groupdocs.com/merger/python-net/_sample_files/developer-guide/merge/powerpoint/input2.pptx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output.pptx" >}} ```text Binary file (PPTX, 88 KB) ``` [Download full output](https://docs.groupdocs.com/merger/python-net/_output_files/developer-guide/merge/powerpoint/merge_powerpoint_documents/output.pptx) {{< /tab >}} {{< /tabs >}} ### Explanation - **Load base document**: `Merger("./input.pptx")` opens the first presentation as the merge base inside a context manager. - **Append second document**: `merger.join("./input2.pptx")` appends all slides from the second file. Call `join` again for each additional file. - **Save result**: `merger.save("./output.pptx")` writes the merged presentation to disk. ### Merge PowerPoint Live Demo GroupDocs.Merger for Python via .NET provides an online [**PowerPoint Merger App**](https://products.groupdocs.app/merger/powerpoint), which allows you to try it for free and check its quality and accuracy. ## API reference - [`Merger`](https://reference.groupdocs.com/merger/python-net/groupdocs.merger/merger/) — main class; `join`, `save` methods. ## See also - [Merge Excel spreadsheets]({{< ref "merger/python-net/developer-guide/merge/excel.md" >}}) - [Merge PDF files]({{< ref "merger/python-net/developer-guide/merge/pdf.md" >}}) - [More use-cases and complete Python via .NET sources]({{< ref "merger/python-net/showcases.md" >}})