Convert finance 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.Conversion 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-conversion -- dnx GroupDocs.Conversion.Mcp --yes
Folders, licensing and more →

Financial formats provide a standardized structure for organizing and presenting financial data. They play a crucial role in streamlining financial processes, improving data accuracy, ensuring compliance, enhancing transparency, and facilitating efficient data exchange and analysis in the financial industry. Popular finance file extensions and their file formats include XBRL, IXBRL and OFX.

Supported finance file conversions

FromTo
IXBRLFinance: IXBRL, XBRL
Spreadsheet: CSV, DIF, FODS, FOPCS, ODS, SXC, TSV, XLAM, XLS, XLSB, XLSM, XLSX, XLT, XLTM, XLTX
XBRLFinance: IXBRL, XBRL
Spreadsheet: CSV, DIF, FODS, FOPCS, ODS, SXC, TSV, XLAM, XLS, XLSB, XLSM, XLSX, XLT, XLTM, XLTX

Convert from finance formats

With GroupDocs.Conversion you can easily convert your finance document into another file format.
For example, the XBRL to XLSX conversion code snippet looks like this:

// Load the source XBRL file
using (var converter = new GroupDocs.Conversion.Converter("sample.xbrl"))
{
    // Set the convert options for Spreadsheet format
   var options = new SpreadsheetConvertOptions();
    // Convert to XLSX format
    converter.Convert("converted.xlsx", options);
}
Note
On .NET 6 and later, converting XBRL and iXBRL documents to spreadsheet formats requires the System.Drawing.Common 4.7.3 package in your project; on Linux, libgdiplus must also be installed. Without it, the conversion throws a MissingDependencyException that names the missing package.
Warning
Since version 26.10, external resources are not loaded by default, and an XBRL or inline XBRL document loads only when every taxonomy file it references is inside the document’s own folder and the document is converted from a file path. A document that references a remote taxonomy, as most filings do, fails to load with InvalidLoadOptionsException. To convert such a document, pass FinanceLoadOptions with SkipExternalResources set to false. See XBRL and inline XBRL.

Put it simply - you just load your finance document into the Converter class, select the desired output format and GroupDocs.Conversion does all the rest.

Convert to another finance format

On the other hand, converting your files to another finance format is also quite simple and natural. The following code snippet shows how to convert an XBRL document to an IXBRL format in C# using GroupDocs.Conversion.

// Load the source XBRL file
using (var converter = new GroupDocs.Conversion.Converter("sample.xbrl"))
{
    // Set the convert options for finance format
    var options = new FinanceConvertOptions { 
       Format = FinanceFileType.IXbrl
    };
    // Convert to IXBRL format
    converter.Convert("converted.ixbrl", options);
}