Text Compare

Original text

Changed text

Ignore whitespace

0

Equal

0

Modified

0

Added

0

Removed

Old lineOriginal textNew lineChanged text
Enter two text blocks to compare differences.

About Text Compare

A local browser tool for comparing text differences

The online text compare tool helps you review document revisions, code snippets, configuration files, logs, and Markdown before publishing or sharing. The comparison runs locally in your browser, showing line-by-line differences, inline changed fragments, and summary counts without uploading your text.


Features

  • Highlights equal, modified, added, and removed lines
  • Shows side-by-side line numbers and text differences
  • Can ignore whitespace to reduce formatting noise
  • Accepts pasted text or common text file uploads
  • Processes content locally in the browser for privacy

How to use

  1. 1 Place the old text in the left editor
  2. 2 Place the new text in the right editor
  3. 3 Paste from the clipboard or upload a text file when needed
  4. 4 Enable whitespace ignoring to filter indentation and extra spaces
  5. 5 Review the summary, line-by-line diff, and inline change marks

FAQ

Is my text uploaded to a server?
No. The comparison runs locally in your browser, so your input does not leave your device.
What can I compare with this tool?
It works well for code snippets, configuration files, logs, Markdown, article drafts, contracts, and plain text.
Can whitespace and indentation differences be ignored?
Yes. Enable whitespace ignoring to reduce noise from indentation, extra spaces, or line-ending style changes.
Which file types can I upload?
You can upload common text files such as .txt, .md, .csv, .json, .xml, .html, and .log up to 5MB each.
What do added, removed, and modified mean?
Added lines appear only in the new text, removed lines appear only in the original text, and modified lines are similar lines with changed characters.

Related Tools