Choose the unit for the change
Lines reveal inserted paragraphs. Words group identifiers and prose tokens. For continuous Chinese or Japanese text, character mode gives finer detail because word mode does not use a language dictionary.
Text and Strings
Compare two versions and keep their original patch.
Ignored spaces, tabs and case remain visible in the editors. Those differences are simply not marked.
Put the original on the left and the revision on the right.
Put the original on the left and the revision on the right.
Characters are Unicode code points; words group letters, numbers, marks and underscores. CR ␍, LF ␊ and tab ⇥ are display markers only.
Text stays in this browser; it is not uploaded.
Each side allows 200,000 UTF-16 units and 50,000 tokens. The view and the patch each stop at 500 ms or 2,000 edits.
Export always uses the exact originals, unaffected by filters or granularity. A matching view can still have a patch; identical originals cannot be exported.
Only LF splits lines; CR and a final LF are preserved. Pasting or editing can normalize line endings in the browser.
A text diff helps review a changed setting or a revised paragraph without reading both versions from beginning to end. Lines stay aligned, and the default marks the changed words inside them.
This diff checker treats code, prose and logs as ordered text. To compare two texts meaningfully, keep the old version on the left and the intended replacement on the right.
A text diff can mark an entire rewritten line or isolate a changed identifier. Word mode groups letters and numbers; character mode compares Unicode code points, useful for punctuation and small numeric edits.
Filtering the review should not remove edits from an exported patch. Even when the screen treats spacing or case as equal, the unified diff still records the exact original-to-target change.
Lines reveal inserted paragraphs. Words group identifiers and prose tokens. For continuous Chinese or Japanese text, character mode gives finer detail because word mode does not use a language dictionary.
Editing updates the comparison about 350 ms after you pause. Granularity, ignore options and the view apply immediately. Ctrl/Cmd+Enter runs it at once. The previous comparison stays visible while the next one is calculated.
Swap, Example and Clear write at once. Undo restores both texts, the options and the view. Long unchanged stretches stay folded. The downloaded patch is still the exact original line diff.
Removed content belongs to the left version; added content belongs to the right. Moving a paragraph can appear as deletion and insertion rather than a special move operation.
Read old and new blocks side by side or follow them in a unified stream. Changing the layout does not turn the screen into the patch file: the download is always a separate exact line diff.
CR, LF and tabs receive display markers so invisible differences can be located. A final LF remains significant, and the patch retains the actual characters instead of their markers.
Text diff compares the written sequence. Reordering JSON keys still changes that sequence; a structural JSON comparison instead examines parsed values. This page never parses or executes the pasted code.
ASCII spaces and tabs can be ignored, as can case through lowercase comparison. Blank lines and line endings are retained. Turn both filters off when checking the exact input text.
It records line changes with file headers and context, suitable for reviewing or processing with patch tools. Here export always uses both originals, regardless of the selected display filters; identical originals have no patch to export.
Line mode compares a line as one unit. Select word or character mode to inspect a smaller change. Counts refer to the selected units and should not be interpreted as a number of human editing actions.
Each input has a 200,000 UTF-16-unit ceiling plus token and computation limits. Highly different short texts can also hit the computation limit. Split the inputs into related sections and compare again.
Found an unexpected difference?
Use text diff to inspect the next pair of versions, then export the complete original changes.