Get Supported File Formats Programmatically

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Comparison MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-comparison -- dnx GroupDocs.Comparison.Mcp --yes
Folders, licensing and more →

If you need the full list of formats at runtime — for example, to validate user input — use the static FileType.get_supported_file_types() method.

Example: List all supported file formats

from groupdocs.comparison.result import FileType

def get_supported_file_formats():
    supported_file_types = FileType.get_supported_file_types()
    for file_type in sorted(supported_file_types, key=lambda x: x.extension):
        print(file_type)
    print("\nSupported file types retrieved successfully.")

if __name__ == "__main__":
    get_supported_file_formats()
ActionScript Programming Language format (.as)
ActionScript Programming Language format (.as3)
Assembler Programming Language format (.asm)
Type of interpreter that processes shell commands (.bash)
File determines the behavior of interactive shells (.bashrc)
Script file in DOS, OS/2 and Microsoft Windows (.bat)
Configuration file for package control on the server-side (.bowerrc)
C-Based Programming Language format (.c)
CAD file format (.cad)
CSharp cross-platform build automation system format (
[TRUNCATED]

Download full output