dev / text

diff

Compare two texts and find every difference instantly. Line and character level. Zero server — nothing leaves the browser.

part of 41 free tools by vøiddo · supports 66 free tools in tools Pro

▼ original
▲ changed
paste text in both panels and click compare
about

what is a text diff?

A diff (short for difference) shows exactly which lines were added, removed, or unchanged between two versions of a text. It's the same operation that git diff uses to show you what changed in a commit, or what a code review highlights between the old and new code.

This tool runs the diff entirely in your browser — no data is sent to any server. You can safely paste passwords, tokens, private configuration files, or any sensitive text.

faq
Does this diff tool send my text to a server?
No. The entire diff algorithm runs locally in your browser using JavaScript. Nothing you type is transmitted anywhere. Safe to paste confidential code, keys, or private text.
What diff algorithm does this use?
An LCS-based (Longest Common Subsequence) line diff — the same family as Unix diff and Git. Lines only in the original are red (removed), lines only in the changed version are green (added), shared lines are context.
Can I compare code files?
Yes. Paste any plain text — source code, JSON, YAML, config files, Markdown, prose, log output. The tool works on any line-based text content.
What does "ignore trailing whitespace" do?
When checked, trailing spaces and tabs are stripped from each line before comparison. Two lines that differ only by trailing whitespace are treated as equal. Useful when your editor adds or removes trailing spaces.
How do I use diff to compare two files?
Open both files in any text editor, select all content, and paste into the Original and Changed panels. Click Compare to see every line-level difference highlighted.

power user?

use this daily? tools.voiddo Pro · $9 one-time

supports 66 free tools · Pro license via Paddle · one flat price, no subscription