Compare Differences Across Popular File Types

Robust API for document comparison across various file formats.

Identify and highlight content differences with minimal coding effort.

Highlight visible differences and uncover changes in hidden properties.

Key Features of GroupDocs.Comparison

API for comparing and diff viewing across PDF, Word, Excel, source code files, and more.

  • Intuitive diff view result

    Analyze changes easily with highlighted differences in a single-document report.

  • Efficient change review process

    Accept or reject changes with visually distinct modifications for easy decision-making.

  • Compare content and styling

    Compare text contents, as well as changes in formatting and style.

  • Compare specific pages

    Load just the particular sections or pages of the document to be compared.

Practical code showcase

Some use cases of typical GroupDocs.Comparison operations.

Comparing two files

To compare two documents, start by loading both the source and target files, and then apply the compare method. You have the flexibility to choose specific comparison settings for a more tailored analysis.
// Specify the source document
using (Comparer comparer = new Comparer("source.docx"))
{
    // Add one or more target documents
    comparer.Add(target.docx");

    // Specify comparison options
    CompareOptions options = new CompareOptions() {ShowRevisions = false};
    // Compare and save result
    comparer.Compare("result.docx", options);
}
// Specify the source document
try (Comparer comparer = new Comparer("source.docx"))
{
    // Add one or more target documents
    comparer.add("target.docx");

    // Specify comparison options
    CompareOptions options = new CompareOptions();
    options.setShowRevisions(false);

    // Compare and save result
    final comparer.compare("result.docx", options);
}
// Specify the source document
const comparer = new groupdocs.comparison.Comparer("source.docx");

// Add one or more target documents
comparer.add("target.docx");

// Specify comparison options
const options = new groupdocs.comparison.CompareOptions();
options.setShowRevisions(false);

// Compare and save result
comparer.compare("result.docx", options);
def run():

    # Specify the source document
    with groupdocs.comparison.Comparer("source.docx") as comparer:

        # Add one or more target documents
        comparer.add("target.docx")

        # Specify comparison options
        options = new groupdocs.comparison.CompareOptions()
        options.setShowRevisions(false)

        # Compare and save result
        comparer.compare("result.docx", options)

50+ file formats supported

GroupDocs.Comparison enables comparison operations within various format families.

Detailed metrics and statistical insights

Explore a thorough analysis of our key figures, offering comprehensive metrics and statistical insights into our accomplishments, influence, and expansion.

  • 50+

    Supported formats

    The API accommodates more than 50 of the most widely used file and document formats.

  • 800k

    NuGet downloads

    GroupDocs.Comparison for .NET has received over 800K downloads through the NuGet package manager.

  • 15k

    Maven downloads

    GroupDocs.Comparison for Java has accumulated over 15K downloads from our Maven repository.

  • 140+

    Happy customers

    Our libraries see adoption by both individual developers and top-tier companies worldwide

Our happy customers

GroupDocs libraries are employed by globally renowned and distinguished brands across the world.

Platform independence

GroupDocs.Comparison library supports the following operating systems and frameworks:

.NET

.NET Framework 4.6.2 or higher
.NET Core 2.0 or higher
.NET 6.0 or higher
Windows
Linux
Mac OS
Microsoft Visual Studio
JetBrains Rider
50+ file formats

Java

Java 8 or higher
Kotlin
Windows
Linux
Mac OS
IntelliJ IDEA
Eclipse
NetBeans
50+ file formats

Node.js

Node.js 16+ and J2SE 8.0 (1.8)+
Windows
Linux
Mac OS
Atom
Visual Studio Code
Any other text editor
50+ file formats

Python

Python 3.9+ and .Net 6+
Windows
Linux
Mac OS
IDLE
PyCharm
Visual Studio Code
50+ file formats

Ready to get started?

Try GroupDocs.Comparison features for free on your platform

Frequently asked questions

Answers to most commonly asked questions.

  • Does the GroupDocs.Comparison library need any other third-party software to manipulate documents?
    GroupDocs.Comparison does not require any external software to be installed such as Adobe Acrobat, Microsoft Office, or any other.
  • Can I try the GroupDocs.Comparison library before purchasing it?
    Yes, you can try GroupDocs.Comparison without buying a license. Once installed without a license, the library works in trial mode. In this mode, trial badges are added to the resultant document, and it is trimmed to the first 3 pages. If you wish to test GroupDocs.Comparison without the limitations of the trial version, you can also request a 30-day temporary license. For more details, see temporary license.
  • What licenses do you have?
    We offer several license types to fit the needs of particular developers or companies. License types depend on the number of developers, the number of developer site locations, and whether you need to deliver our SDK/API to your end customers. Alternatively, you can choose Metered licenses based on monthly usage of the product. Learn more at pricing.
 English