Text Diff Checker
Text ToolsCompare two text blocks — see additions, deletions, and changes highlighted. Free, private — all processing in your browser.
Paste two versions of anything — a config file before and after an edit, two drafts of a paragraph, yesterday's log next to today's — and this checker lines them up and marks exactly what changed. Removed lines turn red, added lines green, edited lines amber, and everything untouched stays grey, so a 200-line file with two real changes reads in a glance instead of a squint.
The comparison is line by line, shown inline or side by side, and it runs entirely in your browser. Two switches handle the differences that usually trip people up: Ignore whitespace, so re-indentation or trailing spaces don't bury the real change, and Ignore case. Nothing you paste is uploaded — the whole diff happens on your machine, which matters when the "text" is a production config or an unreleased draft.
What the Text Diff Checker can do
Inline and side-by-side views
Read changes as one interleaved column with +/- markers, or as two aligned panes — whichever makes the change easier to see.
Ignore whitespace and ignore case
Two toggles that stop re-indentation, trailing spaces, or case-only edits from masking the change you actually care about.
Live change counts
Added, removed, modified, and unchanged line counts update as you type — an instant read on the true size of a change.
Runs entirely in your browser
Both texts stay on your device. Safe for production configs, unreleased drafts, and anything you would not paste into a random website.
Using the Text Diff Checker
- 1
Paste both versions
Original on the left, modified on the right. There's no file to pick — just paste, or hit Load Sample to see how it reads.
- 2
Choose a view
Inline stacks the changes in one column; Side by Side aligns the two versions. Side by side is easier for wide code, inline is more compact.
- 3
Cut the noise if needed
If reformatting or capitalization is drowning out the real change, switch on Ignore whitespace or Ignore case.
- 4
Read the colors and counts
Red is removed, green is added, amber is modified, grey is unchanged. The counts at the top tell you the true size of the change.
When to use the Text Diff Checker
Code and config
- →Reviewing a config edit: Compare a service config before and after a change to confirm exactly which keys moved before you deploy.
- →Checking a paste-back: Verify that code you copied out, edited, and pasted back changed only the lines you meant to touch.
Writing
- →Comparing two drafts: See what changed between two versions of an article or contract, line by line, without emailing files around.
Ops and debugging
- →Diffing two log runs: Line up a working run against a failing one to find the point where they diverge.
Worked examples
A one-key config change
With Ignore whitespace off, the only line flagged is the port — everything else stays grey.
host: api.internal port: 8080 timeout: 30
host: api.internal port: 9090 timeout: 30
Under the hood
What "line by line" actually means. The tool walks both texts, matches the lines that are identical, and flags the gaps: a line only on the left is a removal, a line only on the right is an addition, and a line that changed in place is a modification. It's the same idea behind Unix diff and Git — find what's common, mark the rest — kept deliberately line-oriented.
What that means in practice:
- It compares whole lines, not words. Change one word in a long line and the entire line is marked modified; you'll see the old and new versions, but not the single word underlined. For word-by-word prose comparison that's a real limitation — see the FAQ.
- A moved block isn't detected as a move. Cut ten lines from the top and paste them at the bottom and you'll see ten removals and ten additions, not "moved." No plain line-diff tracks moves.
- Ignore whitespace collapses runs of spaces and tabs to a single space before comparing, so reformatting (re-indenting a block, tabs → spaces) stops registering as a change. Leave it off when whitespace is the thing you're auditing.
The counts at the top — added, removed, modified, unchanged — are the fast sanity check. Expecting a one-line edit but seeing "+40 −38"? That's almost always line-ending noise, not real changes.
Troubleshooting
⚠Everything shows as changed even though the text looks identical
Almost always CRLF vs LF line endings — a file saved on Windows compared against one from Mac or Linux. The tool splits on the newline, so mismatched endings make every line look different. Normalize the line endings (or paste both from the same source) and the real change reappears.
⚠A one-word edit lights up the whole line
This is a line-level diff: if any part of a line changes, the whole line is marked modified and you see the old and new versions. Expected. For prose where you want the single changed word highlighted, use your editor's track-changes or a word-level diff.
⚠Reformatting shows as a massive diff
Re-indenting or converting tabs to spaces changes many lines. Turn on Ignore whitespace to compare content only — then turn it back off when whitespace is exactly what you're checking.
⚠A moved block shows as delete plus add
Cutting lines from one place and pasting them elsewhere shows as removals in the old spot and additions in the new one. Line diffs don't track moves; that's normal, not a bug.
⚠A very large paste feels slow
The comparison runs in your browser, so multi-megabyte inputs can lag. For huge files, use command-line diff and paste only the relevant section here.
Alternatives and comparisons
vs git diff. Git compares tracked files inside a repository from the command line and produces an appliable patch. This tool is for the ad-hoc case: two blobs of text you have in your clipboard, no repo, no terminal, nothing to commit. Different jobs.
vs Word / Google Docs track changes. Those track edits live inside one document, word by word, with authorship and comments — the right tool for collaborative prose. This is a neutral, throwaway side-by-side for any two versions, with no document to own.
vs desktop tools (Meld, Beyond Compare). Those do folder comparisons, three-way merges, and word-level highlighting. Reach for them on a whole project. Reach for this when you just need a fast, zero-install, nothing-uploaded look at two snippets.
Line-level vs word-level. This is line-level on purpose — it's the natural unit for code and configs. If you're comparing paragraphs of prose and need the exact changed word, a word-diff or track-changes will serve you better.
Text Diff Checker — FAQ
▶Is anything I paste uploaded?
No. The comparison runs entirely in your browser — both texts stay on your device. You can confirm it in your browser's Network tab: pasting fires no requests. That's the whole point of doing it here instead of a server-side tool.
▶Does it highlight the exact word that changed?
No — this is a line-level diff. If a line changed, you see the whole old line and the whole new line, not the single word. For word-by-word prose comparison, use your editor's track-changes or a dedicated word-diff tool.
▶Why do two texts that look identical show as different?
Three usual suspects: different line endings (CRLF vs LF), trailing or mixed whitespace, or an invisible character like a BOM or zero-width space. Try Ignore whitespace first; if it's line endings, normalize them at the source.
▶Can I upload files instead of pasting?
Not directly — paste the contents of each file into the two boxes. For folder-level or file-to-file comparison across a project, a desktop tool like Meld or Beyond Compare is the better fit.
▶Can it produce a patch file I can apply?
No. This is a visual comparison to help you see changes, not a patch generator. If you need an appliable patch, use git diff or command-line diff -u.
▶What is the difference between Inline and Side by Side?
Inline stacks everything in one column with +/- markers — compact, good for narrow changes. Side by Side puts the two versions in aligned columns — easier for wide lines and larger edits. Same diff, two layouts.
Useful references
- Myers Diff Algorithm Paper — Original Myers diff algorithm paper (1986).
- diff-match-patch — Google open-source diff library.
- Git diff documentation — Git diff reference with options.
- Unix diff man page — Classic Unix diff command.
- Unified diff format — Specification for unified diff output.
Related tools
All Text ToolsCase Converter
Convert between upper, lower, title, camel, snake, kebab, Pascal, CONSTANT cases
Code Diff Viewer
Compare two code files side by side with syntax highlighting, line-by-line diff, and support for any programming language.
Diff Checker
Compare two text documents side by side with line-by-line diff highlighting for quick change identification.
Find and Replace
Find and replace text with regex support, case sensitivity, whole-word matching, and preview of all changes before applying.
JSON Diff
Compare two JSON objects — find added, removed, and changed properties
Line Counter
Count lines in text with separate totals for blank lines, non-blank lines, words, characters, and paragraphs for detailed statistics.
Learn more
Explore more tools
200+ free tools that run in your browser.
Browse all tools →