# Convert diagrams In this article, you will learn how to convert diagram documents to other formats or another diagram format with GroupDocs.Conversion for Java. ## About diagram formats Microsoft Visio comes as part of the Microsoft Office suite and is used for diagramming and vector drawing applications. It is used to create several different types of diagrams including flow charts, UML diagrams, network diagrams, and a lot of others. Visio file formats include file types such as VSDX, VSX, VTX, VDX, VSSX, VSTX, VSDM, VSSM, and VSTM file formats that are saved to the disc when a user creates a project in Microsoft Visio. ## Supported diagram file conversions {{< include file="/conversion/java/_includes/supported-conversions/diagram.md" type="page" >}} ## Convert from diagram formats With [GroupDocs.Conversion](https://products.groupdocs.com/conversion/java) you can easily convert your diagram document into another file format. For example, VSDX to PDF conversion code snippet looks like this: {{< tabs "convert-diagram-vsdx-to-pdf">}} {{< tab "Java" >}} ```java import com.groupdocs.conversion.Converter; import com.groupdocs.conversion.options.convert.PdfConvertOptions; // Load the source VSDX file Converter converter = new Converter("sample.vsdx"); // Set the convert options for PDF format PdfConvertOptions options = new PdfConvertOptions(); // Convert to PDF format converter.convert("converted.pdf", options); ``` {{< /tab >}} {{< /tabs >}} Put it simply - you just load a diagram file into the `Converter` class, select the desired output format and **GroupDocs.Conversion** does all the rest. {{< alert style="info" >}} Refer to the [API reference](https://reference.groupdocs.com/conversion/java/groupdocs.conversion.options.convert) for more conversion options and customizations. {{< /alert >}} ## Convert to another diagram format On the other hand, converting your diagram files to another diagram format is also quite simple and natural. The following code snippet shows how to convert a VSDX format to a VDW format in Java using [GroupDocs.Conversion](https://products.groupdocs.com/conversion/java). {{< tabs "convert-diagram-vsdx-to-vdw">}} {{< tab "Java" >}} ```java import com.groupdocs.conversion.Converter; import com.groupdocs.conversion.options.convert.DiagramConvertOptions; import com.groupdocs.conversion.filetypes.DiagramFileType; // Load the source VSDX file Converter converter = new Converter("sample.vsdx"); // Set the convert options for VDW format DiagramConvertOptions options = new DiagramConvertOptions(); options.setFormat(DiagramFileType.Vdw); // Convert to VDW format converter.convert("converted.vdw", options); ``` {{< /tab >}} {{< /tabs >}}