Skip to content

Text Diff Checker

Compare two texts and spot added, removed, and edited lines with word or character highlights. Your text stays in your browser.

Paste two versions. Find what changed.

0 lines · 0.0 / 100 KB

0 lines · 0.0 / 100 KB

Comparison settings

Shows finer differences inside paired changed lines.

Up to 100 KB of UTF-8 text and 2,000 lines per field. Pasted line endings are normalized; empty lines and the final newline are compared.

Add text to at least one field. An empty field can be compared with a filled one.

Your data is processed locally in your browser whenever supported and is not uploaded to our servers.

How it works

See what changed between two versions

01

Paste both versions

Add the original and updated text. Try the example to see a comparison before using your own content.

02

Choose the comparison

Keep the exact comparison, or explicitly ignore letter case or whitespace at the edges of each line.

03

Review the differences

Read additions and removals with line numbers and inline highlights. Edit either input and compare again.

For drafts, prompts, and everyday text edits

Compare a revised paragraph, check edits to a prompt, or spot changes between two plain-text code snippets. Word highlights make prose easier to scan; character highlights help inspect small edits.

Readable on a small screen

The inputs stack on mobile, and the results use a single stream of lines. Long lines wrap by default. Turn wrapping off to preserve their layout, or show only changed lines to focus on edits.

For text length, use the word and character counter. To prepare a case change, try the text case converter.

Text comparison questions

How do I compare two texts?

Paste the first version into Original text and the second into Changed text. Choose word or character highlights, then select Compare texts. Removed lines appear with a minus sign, added lines with a plus sign, and matching lines retain both line numbers.

What do the line counts mean?

Added and removed counts describe lines in the comparison, not individual words. A replaced line counts as one removal and one addition. Matched lines are equal under your selected settings. An ending newline creates a final empty line, which is included in the comparison.

Are letter case and whitespace compared?

Yes, by default. You can ignore leading and trailing whitespace on each line, ignore letter case, or use both options. Spaces within a line and empty lines are still compared. Ignored differences are reported separately, and the displayed spelling and spacing are preserved.

Does it support Turkish text and emoji?

Yes. When ignoring letter case, select Turkish rules for I/ı and İ/i. The default uses English locale case rules. Character highlights keep user-perceived characters together, including combined emoji and combining marks. This requires a current browser with Intl.Segmenter support.

Is my text uploaded or saved?

No. The comparison runs in a local browser worker. This tool does not send your text to a server or save it in browser storage. Copy buttons write the selected input to your clipboard only when you use them.

Can I compare an empty field with a filled field?

Yes. Leave Original text empty to see every line as added, or leave Changed text empty to see every line as removed. If both fields are empty, add some text before comparing.

What are the size and processing limits?

Each field accepts up to 100 KB of UTF-8 text and 2,000 lines for comparison. Text over either limit stays in the field but is not compared until you shorten it. Results are shown in pages of 100 rows. Complex comparisons stop after a short time limit; try a smaller section if that happens.

Why are some changes highlighted only as whole lines?

Inline highlights are added to replacement blocks with the same number of old and new lines, paired in order. Very long lines, large blocks, and blocks without a simple one-to-one pairing use whole-line highlighting. Line differences remain visible even when finer highlighting is limited.

Can this compare code or Windows and Unix file formats?

You can paste code as plain text, but this tool does not understand syntax, merge changes, or produce patch files. Both the browser text fields and this tool normalize line endings to LF, so the comparison does not distinguish Windows CRLF from Unix LF line endings. Empty lines and the presence of a final newline are still compared.

Keep working