Back to catalog

Compare texts

Compare two texts by line or word and highlight the differences.

ActiveDocumentsFree
Loading tool...

About this tool

Compare texts shows what changed between two texts at the line or word level, with counts of added, removed and unchanged.

How to use

  1. Paste text A and text B.
  2. Pick comparison by lines or by words.
  3. Optional: ignore case or extra whitespace.
  4. Review the summary and highlighted diff.

Use cases

  • Detect changes between two versions of a text.
  • Compare configs, lists or edited paragraphs.
  • Verify that fixes have been applied before publishing.

Limits

  • Up to 100,000 characters per text.
  • Simple textual comparison based on LCS (longest common subsequence).
  • Doesn't detect block moves; those show up as remove + add.

Privacy

Processing happens in your browser — we don't upload the texts.

Common errors

  • Very long texts can be slow: complexity is O(n × m).
  • Subtle whitespace or case differences look like real changes if those options are off.

Technical notes

  • Diff via dynamic programming using LCS.
  • Tokens by line or by word; original values are preserved in the output.

Related tools

Technical details
ID
compare-texts
Slug
/en/tools/compare-texts
Backend
Not required
AI
Not required
API
Planned