How to use Text Compare
- Paste the older version into Original text.
- Paste the newer version into Changed text.
- Choose Words, Lines, Characters or Sentences in Compare by.
- The comparison updates as you change either version. Read removed text on the left and added text on the right, or use the inline diff below.
- Use Previous change and Next change in the side-by-side result. Download marked HTML, or choose line comparison for a unified patch.
Example: Text Compare
Spot a one-word edit between two versions of a sentence.
Options
- Compare by
- Words suits prose edits, Lines suits code and lists, Characters suits a short string, and Sentences suits whole-sentence changes. Line comparison shows changed lines with a few unchanged lines around them.
- Ignore letter case
- Treats Hello and hello as the same text before comparing. Useful when someone restyled a heading without changing the words.
- Ignore spacing differences
- In Words, Characters and Sentences modes, trims the text and collapses whitespace runs to one space. In Lines mode, removes trailing spaces and tabs and reduces repeated blank lines; spaces within a line and CRLF versus LF endings can still report as changes.
- Unchanged lines shown around changes
- Sets how much surrounding context the line comparison prints, from 0 to 10 lines. No effect on the other three modes.
- Marked HTML download
- A standalone comparison document escapes source markup and marks additions and removals. It does not execute pasted HTML.
- Unified line patch
- Available for line comparison. The patch records differences between the actual input texts, including spacing that a comparison filter may hide.
Supported inputs and limits
- Use pasted plain text or supported UTF-8 text files.
- Word documents, comments and document formatting are not parsed; export or copy their text first.
- Each comparison has a cap counting both sides together: 50,000 characters for Characters, 300,000 for Words and Sentences, and 400,000 for Lines.
- Line mode also stops at 20,000 lines per side.
- Long or very different inputs can exceed the edit budget; compare smaller sections or switch to line mode.
More details
Line output is shortened after 2,000 lines.
Navigation covers the displayed side-by-side sections.
The HTML export includes the complete accepted comparison.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Choosing between word, line and character comparison
Each mode splits the text differently, and that changes what counts as a change. Word comparison is the most readable for prose: it marks the words that came and went without breaking a sentence apart. Line comparison works on the unit that code, logs and CSV files already use, so a changed value is one changed line rather than a scattering of edits. Character comparison is the strictest and finds a single edited letter, which suits checking an ID, but it is also the slowest and has the smallest size limit. Sentence comparison quickly shows whether a paragraph was rewritten wholesale.
Questions about Text Compare
Why did my comparison stop with an error about the texts being too different?
The comparison runs on a fixed edit budget so the page stays responsive. If the two texts share little in common, or they are very long, that budget runs out. Compare smaller sections, or switch to Lines.
What does the similarity figure mean?
It is the unchanged characters divided by the length of the longer side, as a percentage. Two texts that read the same but differ in wording will still score below 100.
Which mode should I use for code or a CSV file?
Use Lines. It reports changed lines with the surrounding unchanged lines, and it avoids the tighter limit that Characters mode applies.
Does it ignore formatting such as bold or italics?
Yes. Only the characters you paste are compared, so a bold word that is otherwise identical is reported as unchanged.
Why do my two texts look identical but score below 100?
Hidden differences such as a curly apostrophe, a non-breaking space or a different line ending will register. Turn on Ignore spacing differences and compare again.