inyourbrowser.com

Git-Like Text Diff Tool

Paste two versions of any text or upload two files to see a unified, git-style diff. Added lines appear with +, removed lines with −, and a few unchanged context lines surround every change, the same layout you see in git diff, GitHub pull requests, and patch files. All diffing runs in your browser using a Web Worker so the page stays responsive on large inputs.

Original
Drop a text file or click to choose
Updated
Drop a text file or click to choose
+ 0 added0 removed= 0 unchanged
Paste text in both panes above to see the diff.

ACTIONS

Runs entirely in your browser

How it works

The diff algorithm runs in a Web Worker inside your browser, so the page stays responsive even for large files. All processing runs locally.

Processing runs in your browser

All diffing is done locally using browser APIs. Our servers are not involved at any point.

Frequently asked questions

How is this different from side-by-side diff?
The git-like view shows one column with added and removed lines stacked together, marked + or −, and short context lines around each change. Side-by-side puts the original on the left and the updated version on the right in two columns, which can be easier for reviewing prose, while the git-like layout is the standard for code review.
Can it diff large files?
Yes. The diff runs in a Web Worker so the main thread stays responsive even on multi-megabyte inputs. The practical limit is your browser's available memory rather than a fixed cap.
Does it support unified diff format?
Yes. The view uses unified diff conventions: + for added lines, − for removed lines, and unchanged lines shown for context. You can copy the output and paste it into a patch file, code review tool, or commit message.
What algorithms are used?
The diff is computed using a line-based longest common subsequence (LCS) algorithm, the same family that powers git diff. Inside changed regions, a secondary word-level pass highlights the precise tokens that differ for finer-grained review.

Related operations

For making the same change everywhere in one file, try find and replace. To put both inputs in matching order before comparing, use sort lines. For diffing two JSON payloads after pretty-printing, see the JSON formatter.

Related tools

Word counter
Count words, characters, sentences, and paragraphs. All processing runs in your browser.
Readability checker
Flesch reading ease, grade level, and estimated reading time. Paste any text and see the score.
Case converter
Convert text between camelCase, snake_case, kebab-case, PascalCase and more.
Find & replace
Find and replace text with plain search or regular expressions. Supports case-sensitive and whole-word matching.