Text comparison
Compare two texts with line numbers and highlighted additions and removals.
Use the codeJavaScript
Loading code…
A LITTLE MORE CONTEXT
See what changed in your text
Compare original and updated text line by line. Additions and removals have both labels and colour, with old and new line numbers.
How to use it
- Paste the original text on the left and the updated text on the right.
- Optionally ignore leading and trailing whitespace, then compare.
- Read the highlighted changes or copy the comparison.
What to know
Up to 100,000 UTF-16 characters and 2,000 lines per side. CRLF and CR line endings are normalized to LF. Final newline differences are retained. Comparison stops after 250 ms or 2,000 edits; use a smaller section if needed.
Comparing JSON? See changes by field ↗