Get supported file formats

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 →

On this page

GroupDocs.Comparison allows you to get the list of all supported file formats. To do this, follow these steps:

  1. Call the GetSupportedFileTypes method of the FileType class.
  2. Enumerate through the collection of the FileType objects.

The following code snippet shows how to get list of supported file formats:

using GroupDocs.Comparison;
using System;
using System.Collections.Generic;
using System.Linq;
using GroupDocs.Comparison.Result;
// ...

IEnumerable<FileType> supportedFileTypes = FileType
	.GetSupportedFileTypes()
	.OrderBy(f => f.Extension);

foreach (FileType fileType in supportedFileTypes)
	Console.WriteLine(fileType);

The result is as follows:

See also

On this page