Text Compare

Paste two versions and see the differences — everything runs in your browser.

Left 0 lines
1
Right 0 lines
1
Left 0 B · Right 0 B
Ready to compare

Why Use Our Diff Tool?

  • Line and character-level highlights
  • Added, removed and unchanged counts
  • Synchronised scrolling between panes
  • Works completely in your browser
  • Handles code, config and plain text

Features & Supported Capabilities

  • Trims identical head and tail regions for speed on huge files
  • Myers diff algorithm for accurate change detection
  • Handles files up to 10 MB per side
  • Optional line wrapping for long lines
  • Copy or download either side independently

About this text compare and diff checker

A diff checker shows exactly what changed between two versions of some text. This free online text compare tool highlights differences line by line and down to the character level, so you can spot a single changed word inside a long line. It works for code, configuration, documents and logs.

Comparison runs in your browser, so nothing is uploaded and it is safe for private content. For structured data, the JSON compare, XML compare and XSLT compare tools format both sides first so formatting differences do not drown out real changes.

Frequently Asked Questions

Everything you might want to know about the online Text Compare tool.

It compares two blocks of text side by side and highlights the lines that were added, removed, or changed between them — useful for reviewing edits, config changes, or any two versions of a file.
Line-level. Each side is split into lines and matching lines are aligned, so you can see exactly which lines were inserted, deleted, or moved.
No. The comparison runs entirely in your browser. Neither side's text is ever uploaded, stored, or logged.
Yes. It works on any plain text — source code, XML, JSON, CSV, logs, config files — not just prose. If you're comparing XML or JSON specifically, XML Compare and JSON Compare auto-format both sides first so whitespace differences don't drown out the real changes.
You can paste text or upload a file up to 10 MB on each side.
Lines only in the left text are marked as removed, lines only in the right text are marked as added, and unchanged lines are shown without a highlight.
Yes, the input on each side can be copied or downloaded independently, the same as the other editors on this site.
Yes. Matching head and tail regions are trimmed before diffing, so files that share long identical sections compare quickly even at tens of thousands of lines.
Yes. Toggle line wrapping to wrap long lines instead of scrolling sideways.