Diff checker
Compare two texts and see every added, removed and changed word. Free, no sign-up, and everything runs in your browser.
Differences
1
Launch plan
1
Launch plan
2
2
3
-
Launch day: Tuesday
3
+
Launch day: Wednesday
4
-
Tagline: Track every habit in one place.
4
+
Tagline: Track every habit in one simple place.
5
-
Price: $5 per month
5
+
Price: $4 per month, or $40 per year
6
-
Channels: newsletter, X, Reddit
6
+
Channels: newsletter, X, Reddit, Discord
7
Owner: Sam
7
Owner: Sam
8
+
Follow-up email: the day after launch
What this diff checker does
A diff checker puts two versions of a text next to each other and marks what changed. Paste the old version on the left and the new version on the right. Removed lines turn red, added lines turn green, and inside a changed line the exact words that changed are highlighted, so a one-word edit in a long paragraph is easy to spot.
It works for any plain text: code, config files, JSON, CSV rows, contracts, release notes, or two drafts of your landing page copy. The comparison runs in your browser tab, so private text never leaves your device.
How to compare two texts
- Paste the original text into Original text and the new version into Changed text. The differences update as you type.
- Pick Side by side to read both versions in two columns, or Inline to read the changes in one column. Phones start in Inline.
- Turn on Ignore case or Ignore whitespace when only real content changes matter, for example after a code formatter reflowed a file.
- Long runs of unchanged lines fold away. Select a "Show unchanged lines" bar to open it.
- Select Copy as unified diff to copy the changes in the standard
diff -ulayout that code reviews, issue trackers and thepatchcommand understand.
How the comparison works
The tool first compares whole lines and finds the smallest set of lines to remove and add that turns the original into the new text. It uses Eugene Myers' O(ND) difference algorithm, which is also the default diff algorithm in Git.1 Then, for each removed line that is paired with an added line, it runs the same comparison on the words inside them to find the changed words.
If two texts differ almost everywhere, a minimal alignment would take too long in a browser tab. In that case the tool says so and shows the changed part as one removed block and one added block.
Tips for cleaner diffs
- Compare like with like. Format both JSON documents the same way first (the JSONPath tester has a Format button), or every line will look different.
- Turn on Ignore whitespace for indentation-only changes. It treats any run of spaces and tabs as one space and ignores spaces at the start and end of a line.
- Keep each change small when you write. A diff of a page rewritten in one pass is hard to read. A diff of three focused edits is easy to review, which also helps when you compare launch copy drafts from your launch checklist.
More free tools
ASCII table and converter
ASCII table with all 128 codes in decimal, hex, octal and binary, plus a converter from text to ASCII codes and back. Runs in your browser.
Keycode finder
Keycode finder that runs in your browser. Press any key to see its JavaScript keyCode, key, code and location, and copy a ready keydown handler.
Image converter
Image converter that runs in your browser. Convert PNG, JPG, WebP, AVIF, GIF and SVG files in bulk, with quality and resize options. No uploads.
HTML to Markdown converter
HTML to Markdown converter that runs in your browser. Paste HTML or rich text from a web page, Google Docs or Word and get clean GitHub Markdown.
Test credit card numbers generator
Test credit card numbers for form and checkout tests, made in your browser. Generate valid-format numbers for 7 card networks and check any number.
PX to REM converter
PX to REM converter that runs in your browser. Convert px to rem and rem to px at any root font size, or convert a whole stylesheet at once.
Frequently asked questions
Sources
Git documentation: git diff (the
--diff-algorithmoption)GNU Diffutils manual: Unified Format
GNU Diffutils manual: Incomplete Lines