Diff Checker (Compare Text)
Compare two texts or code files line by line, with changed words highlighted, line numbers and a copyable unified diff.
How it works
Paste the old text on the left and the new text on the right. The tool finds the longest run of lines the two versions share (the same idea Git uses) and marks everything else: red lines were removed, green lines were added. When one line was edited, the exact words that changed are highlighted inside the line.
Use the options to ignore case or spacing, hide blank lines, or show only the changes with a few lines around them. Copy the unified diff to paste into a review or an email.
Worked example
Old: "total = price * qty" and new: "total = price * qty + tax". The tool shows one removed line and one added line, and highlights "+ tax" inside the green line.
Good to know
- Turn on "Ignore all spacing changes" when code was only re-indented.
- Choose "3 lines around each change" for long files so you only scroll through what changed.
- A moved paragraph shows as removed in one place and added in another. Line diffs do not detect moves.
- Your text never leaves the browser, so it is safe for assignments and code.
Common questions
- Is this the same as git diff?
- It uses the same kind of algorithm (longest common subsequence) and the same +/- notation, but it compares two pasted texts, not files in a repository.
- Why is a line shown as removed and added instead of changed?
- Line diffs only know same, added and removed. Changed lines are shown as a removed and an added pair, with the changed words highlighted.
- How large a file can I compare?
- Up to 1500 lines on each side. Split larger files into parts.
- Does it check plagiarism?
- No. It only shows the differences between two texts you paste. It does not search the web.
More in Developer.
See the ASCII code of every character in decimal, hex, binary and octal, or turn codes back into text.
OPEN →Axios Request GeneratorFill in a method, URL, headers and body and get a ready Axios Request snippet to copy.
OPEN →Base32 Encoder and DecoderEncode text to Base32 (RFC 4648) or decode it, as used in 2FA secrets.
OPEN →