# Get supported file formats This article explains how to obtain supported file formats list when viewing documents with GroupDocs.Comparison within your Java applications. [GroupDocs.Comparison](https://products.groupdocs.com/comparison/java) allows you to get the list of all [supported file formats]({{< ref "comparison/java/getting-started/supported-document-formats.md" >}}). To do this, follow these steps: 1. Call the [getSupportedFileTypes](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.result/filetype/#getSupportedFileTypes--) method of the [FileType](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.result/filetype/) class. 2. Enumerate through the collection of the [FileType](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.result/filetype/) objects. The following code snippet shows how to get list of supported file formats: {{< tabs "example1">}} {{< tab "Java" >}} ```java import com.groupdocs.comparison.result.FileType; // ... Iterable fileTypes = FileType.getSupportedFileTypes(); for (FileType fileType : fileTypes) { System.out.println(fileType); } ``` {{< /tab >}} {{< /tabs >}} The result is as follows: ![](https://docs.groupdocs.com/comparison/java/images/get-supported-formats.png)