# Get supported file formats This article shows that how to get the list of all supported file formats of GroupDocs.Redaction by using Java. ### Get supported file formats GroupDocs.Redaction allows to get the list of all supported file formats by these steps: * Call *getSupportedFileTypes *of *FileType* class; * Enumerate through the collection of *FileType *objects*.* The following example demonstrates how to get supported file formats list. {{< tabs "code-example-list-supported-formats" >}} {{< tab "list_supported_formats.js" >}} ```js const redaction = require('@groupdocs/groupdocs.redaction'); const supportedFileTypes = redaction.FileType.getSupportedFileTypes(); const iterator = supportedFileTypes.iterator(); while (iterator.hasNext()) { const fileType = (FileType)iterator.next(); console.log(fileType); } ``` {{< /tab >}} {{< tab "code-example-list-supported-formats.txt" >}} ```text Tagged Image File (.tif) Tagged Image File Format (.tiff) JPEG Image (.jpg) JPEG Image (.jpeg) Portable Network Graphic (.png) Graphical Interchange Format File (.gif) Bitmap Image File (.bmp) JPEG 2000 Core Image File (.jp2) Hypertext Markup Language File (.htm) Hypertext Markup Language File (.html) [TRUNCATED] ``` [Download full output](https://docs.groupdocs.com/redaction/nodejs-java/_output_files/developer-guide/basic-usage/get-supported-file-formats/CodeExampleListSupportedFormats/code-example-list-supported-formats.txt) {{< /tab >}} {{< /tabs >}}