Text diff
Compare two texts and produce a readable unified line diff.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Paste the original and revised text.
- Run the comparison.
- Lines prefixed with minus were removed; lines prefixed with plus were added.
Things to know
- Processing happens on your device. Check the result before replacing your original data.
- Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
- Line-based modes accept up to 100,000 lines, including a trailing empty line.
- Comparison is bounded to 1.5 seconds inside the diff engine and 10,000 edits. Compare smaller sections when the texts differ too much.
You might also need
More in text & listsUnicode inspector and normalisation
Reveal code points, invisible characters and Unicode normalisation differences.
Text repeater
Repeat text a chosen number of times, with line breaks, spaces or your own separator.
Text-column extractor
Extract numbered columns from delimited lines without damaging quoted fields.
Word and character counter
Count words, Unicode characters, graphemes, lines and UTF-8 bytes.
Bold, small and styled text generator
Make copyable bold, small, circled, strikethrough or upside-down text using Unicode characters.
Text-between extractor
Extract each piece of text between a pair of delimiters.
Remove extra spaces
Trim lines, collapse repeated spaces and remove blank lines.
Line filter
Keep or remove lines containing text, matching a pattern or meeting a length.
List comparer
Find shared, missing and combined items across two lists.