Tarayıcınız güncel değil

Bu siteyi görüntülemek için tarayıcınızın veya cihazınızın işletim sisteminin güncellenmesi gerekiyor.

Your browser is out of date. Please update iOS or your browser to view this site.

Skip to main content
Gizke.com
Blog

Text Compare

Runs on your device. Nothing is sent.

Original

Modified

Differences

Paste text on both sides to see the differences

Highlight the line-by-line differences between two pieces of text, entirely in your browser.

This tool compares two pieces of text line by line and highlights what was added, removed, or left unchanged - the same underlying technique behind a code editor's diff view or version control's changelog. It runs a classic longest-common-subsequence algorithm entirely in your browser: nothing you paste is ever uploaded anywhere.

Frequently asked questions

Why does a single edited word show as a whole line removed and re-added?
This tool compares line by line, not word by word - so a line with even one character changed shows up as its old version being removed and its new version being added, since the line as a whole is no longer identical. That's still useful for spotting exactly which lines changed, even without word-level highlighting inside the line.
What does 'ignore whitespace' actually ignore?
It trims leading and trailing spaces from each line and collapses any run of internal whitespace down to a single space before comparing - so lines that differ only in indentation, trailing spaces, or extra spaces between words are treated as identical.
Can this compare code, not just plain text?
Yes - the comparison is purely line-based text matching, so it works the same way on source code, configuration files, or any other line-oriented text. It doesn't understand any particular language's syntax, which is exactly what makes it work on all of them equally.
What exactly does the 'Ignore case' option change?
When it's on, each line is lowercased before it's compared to its counterpart, so 'Hello' and 'hello' count as the same line and won't be flagged as a change. The result still displays every line with its original capitalization - only the comparison itself ignores case, not what you see on screen.
Why did I get a warning about the text being too large?
The diff algorithm builds a table with one cell for every pair of lines from both texts, so its memory and time cost grow quickly as texts get longer. Once either side passes 2,000 lines, the tool warns you that comparing may take a moment and use noticeable memory, since it all runs in your browser tab rather than on a server - you can still go ahead, it's just a heads-up.
For developers: open this page with `original` and `modified` parameters in the URL - e.g. gizke.com/diff?original=hello world&modified=hello there - and both sides are pre-filled automatically. Most visitors won't need this; it's meant for linking directly to a ready-to-use comparison.

Share this tool

BlogAboutContactTerms of UsePrivacy Policy