# Get supported file formats This article explains how to get the list of all supported file formats. GroupDocs.Watermark allows to get the [list of all supported file formats]({{< ref "/watermark/java/getting-started/supported-document-formats.md" >}}) by following the below steps: * Call [getSupportedFileTypes](https://reference.groupdocs.com/watermark/java/com.groupdocs.watermark.common/FileType#getSupportedFileTypes()) of [FileType](https://reference.groupdocs.com/watermark/java/com.groupdocs.watermark.common/FileType) class; * Enumerate through the collection of [FileType](https://reference.groupdocs.com/watermark/java/com.groupdocs.watermark.common/FileType) objects*.* The following code sample demonstrates how to get a supported file formats list. **basic\_usage.GetSupportedFileFormats** ```java FileType[] fileTypes = FileType.getSupportedFileTypes(); for(FileType fileType : fileTypes) { System.out.println(fileType); } ```