Text Compare

Diff two texts by lines, words, or characters with side-by-side or unified view. Ignore case, whitespace, blank lines, or punctuation.

Files and content are processed locally in your browser and are not uploaded to our server.

About this tool

Compare an original and modified version of any text with granular diff modes: line, word, or character level. Toggle ignore options for case, whitespace, blank lines, and punctuation, then review changes in side-by-side or unified layout with highlighted additions and deletions.

How to use

  1. Line, word, and character diff granularity
  2. Side-by-side and unified view modes
  3. Ignore case, whitespace, blank lines, punctuation
  4. Import both sides from local files
  5. Export diff summary as text
  6. Paste A and B: Enter original text in panel A and modified text in panel B.
  7. Set diff options: Choose granularity, view mode, and ignore checkboxes.
  8. Review highlights: Added, removed, and changed segments are color-coded.

Examples

Limitations

FAQ

When should I use word vs line diff?
Use line diff for code or logs; word diff for prose edits; character diff for typos in short strings.
What does ignore whitespace do?
Leading, trailing, and repeated internal spaces are normalized before comparing.
Can I compare files?
Yes. Use the import buttons on each panel to load local text files into A and B.
Side-by-side vs unified?
Side-by-side shows two columns; unified merges changes into a single stream like git diff.