KitBench

Document Comparison Tool (Text Diff)

Compare two documents side by side or in unified view across TXT, Markdown, HTML, JSON, CSV, DOCX, ODT, XLSX, PPTX, and RTF.

Privacy Notice: Runs locally in your browser without uploading files to external servers or requiring an account.

Interactive Browser Workspace

Loading the interactive Document Comparison Tool (Text Diff) workspace. Enable JavaScript in your browser to run calculations and conversions locally.

How to Use Document Comparison Tool (Text Diff)

  1. Upload or paste Document A (Original) and Document B (Revised) using text, Markdown, DOCX, ODT, XLSX, PPTX, or RTF files.
  2. Toggle Ignore Whitespace, Ignore Case, or switch between Side-by-Side and Unified diff views.
  3. Review added, removed, and unchanged line counts and export a plain-text diff summary.

Methodology & Accuracy

Extracts plain text from supported Office/OpenDocument containers locally (Mammoth for DOCX, JSZip XML for ODT/PPTX, ExcelJS for XLSX) and computes an exact line-level longest common subsequence (LCS) diff.

Examples

  • Compare two versions of a contract or specification saved as .docx or .md to spot every added or deleted line.
  • Check what changed between two exported CSV or YAML configuration snapshots.

Scope & Limitations

  • Performs text-level line comparison only. Visual formatting changes (font colors, margins, images, or Word track-changes metadata) are not compared.
  • Very large files over 4,000 lines use a fast bounded comparison window to keep browser responsiveness smooth.

Frequently Asked Questions

Does Document Comparison compare visual layout or only text?

It compares extracted text lines only, and displays a clear notice whenever Office files are compared so you know formatting styles are excluded.

Can I compare a .docx file against a .md or .txt file?

Yes. Because both sides are extracted to normalized text lines, you can compare across different supported document formats.

Are additions, deletions, and unchanged lines clearly labeled?

Yes. Side-by-side and unified diff indicators highlight inserted and removed segments with clear badges and markers so changes are easy to audit.

Related Tools