Edits and drafts
See what an editor, a colleague or a translation tool changed in an essay, a contract clause or a blog post.
Paste an original and a changed version and see what was added and removed, by line, word or character. View the result side by side or inline, ignore case and extra spaces, hide unchanged lines, and copy or download the diff. Both texts are compared in your browser and never uploaded.
Learn how to read a diff, when to compare by lines, words or characters, and how to get a clean comparison.
A text diff checker compares two versions of a text and shows exactly what changed. Lines, words or characters that were added are marked in green, and the ones that were removed are marked in red.
Writers use it to review edits, developers use it to compare code and configuration files, and anyone can use it to check whether two copies of a document really match. If the two texts differ only in stray spaces, clean them first with the Whitespace Remover, and use the Text Sorter to put two lists in the same order before comparing.
See what an editor, a colleague or a translation tool changed in an essay, a contract clause or a blog post.
Compare two versions of a script, a JSON file or a config to find the one line that broke something.
Check what is new or missing between two exports, such as email lists, product names or keyword lists.
The best choice for code, lists and paragraphs. Lines that changed are paired and the changed words inside them are highlighted.
Compares word by word across the whole text. Good for prose where a line break moved but the wording is the same.
Shows every added or removed character. Useful for catching a single typo, a changed digit or a stray symbol.
Side by side shows both versions next to each other. Inline merges them into one column with removals and additions in sequence.
The tool looks for the longest run of items that both texts share and marks everything else as a change. It uses Myers’ algorithm, the same approach that GNU diff and Git use by default, so it finds a shortest list of edits. The plus and minus signs and the labels read by screen readers mean the result does not depend on colour alone.
Copy diff gives you plain text. For lines, removed lines start with a minus sign and added lines with a plus sign. For words and characters, removed text is wrapped in [- -] and added text in {+ +}.
Both texts are compared in your browser. Neither one is sent to our server. Only your mode, view and option choices are remembered on your device, never the text itself.
Each text can be up to 2 million characters, or 100,000 characters for character comparison. If two long texts are very different, the changed section may be shown as one replaced block. The tool compares plain text only, not Word or PDF files, and it does not understand code syntax.
Paste the original text in the left box and the changed text in the right box. The differences appear below straight away, with added text in green and removed text in red.
Green with a plus sign is added, red with a minus sign is removed, and plain text is the same in both. Inside a changed line, the exact words that changed get a stronger highlight.
Lines compares whole lines, which suits code and lists. Words compares word by word, which suits prose. Characters compares every character, which helps you find a single typo or a changed digit.
It finds the longest sequence of lines, words or characters that both texts share and marks everything else as added or removed. It uses Myers’ algorithm, the same method GNU diff and Git use by default.
Yes. Tick Ignore upper and lower case to treat capitals and lower case as equal, and Ignore extra spaces to ignore leading, trailing and repeated spaces. If nothing else differs, the tool says so.
It hides unchanged lines and keeps three lines of context around each change, with a note showing how many lines were hidden. It works when you compare by lines.
It is twice the number of unchanged items divided by the total number of items in both texts. Two identical texts score 100% and two texts with nothing in common score 0%.
Yes. Copy diff and Download .diff give you plain text. For lines, removed lines start with a minus sign and added lines with a plus sign. For words and characters, removed text is in [- -] and added text in {+ +}.
It works on any plain text, including code and JSON, but it does not understand syntax. You cannot upload Word or PDF files, and formatting is lost when you paste, so only the words are compared.
No. Both texts are compared in your browser. Each can be up to 2 million characters, or 100,000 for character comparison. Your mode and option choices are remembered on your device, but the text is not saved.
The homepage features dozens more free tools that don't require an API key.
Convert a date and time between time zones and compare several cities.
Open toolGenerate v4, v7 and v5 UUIDs in bulk, with a validator.
Open toolMeasure your words per minute and accuracy over 15 to 120 seconds.
Open toolConvert length, area, volume, speed, temperature, time, data and more.
Open toolNo matching question.
Share your thoughts on this tool with other visitors.