Catch every change between two PDFs

Compare two versions of a document and highlight every addition, deletion, and edit — right inside your app.


Compare documents line by line

Analyze the differences between two PDFs — or two versions of the same document — with intuitive visual highlighting.

Highlight edits with a contextual UI

Visualize every difference with intuitive side-by-side views, scroll lock, and sidebar navigation.

Switch between character- and word-level diffing

Use default character-level comparison, or enable word-based diffs for a more semantic view of text changes.

Customize highlights and toolbar controls

Adjust sidebar views, colors, and toolbar options to match your app’s UI — no heavy lifting required.


HOW IT WORKS

Fast, flexible document review

Integrate text comparison into your app and configure it to match your workflow.

KEY FEATURES

PDF text diffing that fits your application

Text Comparison gives developers full control over document change detection and presentation with clear, customizable text comparison tools.

Web UI sidebar displaying an AI-generated summary of changes alongside a detailed list of edits
Per-page comparison

Highlight changes between corresponding pages across two documents — perfect for version tracking or policy reviews.


Granular or high-level diffs

Toggle between character- and word-level comparisons to match the type of content and audience.


Visual diff viewer

Show added, deleted, or modified text in an intuitive side-by-side view, with contextual navigation and scroll lock.


AI-powered summaries (optional)

Surface summaries and tag changes by category using Nutrient AI Assistant — ideal for legal or editorial workflows.


Custom highlight styles

Use theme-friendly color configuration to match your app’s look and feel.


Multi-language awareness

Word-level comparison adapts to languages where character-level analysis yields better results.


No-UI comparison available

Call compareDocuments to process differences programmatically and display them your way.


Supported on your platform



Run it your way

Whether you’re building for web, mobile, or the backend, Nutrient gives you full flexibility — all with a consistent developer experience.

Client-side SDKs

Use the web, mobile, and cross-platform SDKs to embed document capabilities directly into your app — fully client-side, no backend required


Server-backed control

Use Document Engine for server-backed processing, data control, and deep infrastructure integration


Cloud-hosted scale

Use Document Web Services (DWS) for instant scale, with cloud-hosted APIs for viewing, annotating, converting, and more


WEB PLAYGROUND

Looking for the code? Come play in our sandbox



REAL-WORLD IMPACT

Built for scale. Trusted in production.

Nutrient powers mission-critical document workflows for global enterprises — from compliance-heavy industries to modern SaaS teams.


Used Nutrient to enable fast, focused board pack review with in-document annotations and threaded feedback — enhancing governance workflows across schools and nonprofits.


Renders multipage PDFs and signature tags with Nutrient, keeping 200 million users in 188 countries moving at the speed of eSignature.


Empowers 34,000 pilots to view, annotate, and sign 90‑page flight releases on iPad using Nutrient iOS SDK, saving minutes — and money — on every flight.

FREE TRIAL

Add text comparison to your app — no credit card required

Frequently asked questions

What is Nutrient’s text comparison SDK used for?

Nutrient’s text comparison SDK is built for developers who need to identify differences between two documents or versions. It highlights insertions, deletions, rewording, and formatting changes in a clean, per-page diff view — ideal for reviewing contracts, policies, or regulated documents.

How does the SDK display differences between documents?

Text changes are shown using visual diff overlays, with color-coded highlights for insertions and deletions. Users can choose between character-level or word-level diffing for more granular or semantic review.

Can I customize the UI for comparison?

Yes. You can tailor the viewer’s toolbars, diff styles, navigation behavior, and sidebar layout — or hide the UI entirely and run comparisons programmatically using compareDocuments.

What platforms are supported for integration?

The SDK supports Web, iOS, Android, Mac Catalyst, Electron, MAUI, React Native, Flutter, and visionOS — giving developers full flexibility across desktop and mobile.

Does the SDK support automated workflows or headless comparison?

It does. Developers can compare documents without showing the UI, allowing automated diffing in custom review tools or back-office workflows.

What’s the difference between standard and AI-powered comparison?

Standard comparison detects and highlights raw text changes. AI-powered comparison adds summaries and categorizes edits by intent (e.g. formatting, legal updates, rewording), helping reviewers focus faster.

Can I use the SDK for legal, editorial, or compliance use cases?

Absolutely. The SDK is widely used in legal, tech, and financial services and on editorial platforms for tracking revisions, auditing regulatory documents, and managing version control.


Compare PDFs with precision — at any scale

Nutrient’s text comparison SDK helps developers build seamless, document-aware experiences that highlight even the smallest text changes between versions. Whether you’re building a legal review tool, auditing policy updates, or tracking contract revisions, our SDK delivers the accuracy and flexibility your users expect.

Key capabilities include:
  • Side-by-side PDF comparison with color-coded highlights
  • Word- and character-level diffing
  • AI-powered summaries and change categorization
  • Customizable viewer UI and headless API support
  • Cross-platform compatibility (Web, iOS, Android, Electron, Flutter, and more)
Common use cases:
  • Compare two versions of a contract and flag legal changes
  • Review internal policy updates across document revisions
  • Track edits in publishing workflows with semantic change tags
  • Integrate with document management systems for version control
  • Enable reviewers to quickly scan and accept/reject suggested edits

Trusted by teams in legal, healthcare, finance, and SaaS, Nutrient’s PDF comparison tools make it easy to surface what’s changed — and what matters.