100% free
Diff checker
Your texts
Paste the original and the changed text, or load a text file into each field
Files are read in your browser and not uploaded. Allowed are text files such as .txt, .md, .csv, .json, .html, .xml, .css, and .js. Up to 1 MB per file.
Features at a glance
What you can do with the diff checker
Line comparison
Compares the texts line by line and shows added, removed, and unchanged lines.
Word comparison
Compares at the level of words, which suits small changes in running text.
Character comparison
The finest level, for typos and swapped digits.
Side-by-side view
Shows the original and the changed text next to each other.
Inline view
Shows all changes in a single column.
Comparison options
Ignore upper and lower case or whitespace, or trim each line before comparing.
How to compare texts and text files in three steps
You don't need an account or an installation. Both texts and files stay in your browser.
- Paste the original text on the left and the changed text on the right, or click 'Load file' for a field. 'Load example' shows you what a result looks like.
- Choose the comparison mode and, if needed, the options for upper and lower case or whitespace.
- Click 'Compare texts'. The result shows what was added, what is missing, and what stayed the same.
'Load file' reads a text file from your device straight into the field. The file isn't uploaded, your browser reads it locally. Text files such as .txt, .md, .csv, .json, .html, .xml, .css, and .js are supported, up to 1 MB each. The tool rejects binary files such as Word documents, PDFs, or images with a message, and the file must be UTF-8 encoded. Line breaks from Windows and old Mac texts are converted to a single kind, including in pasted text, so they don't count as a difference on every line. After loading, you can still edit the text in the field. 'Swap texts' reverses original and change.
Line, word, and character mode
A diff checker puts two texts side by side and marks the differences. The mode decides how closely it looks.
| Mode | Good for | Maximum, both texts together |
|---|---|---|
| Lines | Lists, code, configuration files, and texts with many paragraphs | 2,000 lines |
| Words | Revised running text where single words change | 4,000 word parts, where words and the spaces between them count separately |
| Characters | Typos, swapped digits, and the smallest differences | 3,000 characters |
The limits protect your browser, because the comparison gets very expensive for long texts. If you go over a limit, the tool names it, and you shorten the text or switch the mode.
In line mode, a changed line appears as a removed line and a new line. If the two sit directly below each other, the tool also marks the words that differ. For very long lines it skips this finer marking, and so it does when many long lines have changed and the total budget for it is used up. The line then counts as changed as a whole. For the word level, use word mode.
What the options change
- Ignore case treats 'Example' and 'example' as the same.
- Ignore whitespace treats several spaces or tabs in a row as a single space. This helps when two texts differ only in indentation or double spaces. The option applies in line and word mode. In character mode, every space counts on its own, and the switch is disabled.
- Trim lines removes spaces at the start and end of each line before comparing. The option works only in line mode and is disabled in the other modes.
The options only affect the comparison. Your text stays unchanged, and the result still shows the original wording.
Tips for a clean result
- Both fields need text, otherwise the comparison doesn't start.
- Text copied from a PDF or an email often contains extra line breaks. In that case, switch to word mode and turn on 'Ignore whitespace', so a line break counts like a space. In character mode, the option doesn't help.
- For long texts, start in line mode to get an overview, then check conspicuous paragraphs in word mode.
- If your text is over the limit for the mode, compare it in sections.
Your texts aren't sent to a server, so you can also compare drafts or internal documents.
Reading and saving the result
Above the result you see how many units were added, removed, and left unchanged. Depending on the mode, a unit is a line, a word part, or a character.
- The side-by-side view shows original and change next to each other and suits texts you go through sentence by sentence.
- The inline view puts everything in one column and fits small screens better.
- The HTML export saves the result in the view you have selected as a standalone file with colors and line numbers (in line mode) or as running text with markings (in word and character mode). Options and statistics aren't included.
If you change a text or an option after comparing, the result disappears and you run the comparison again.
Frequently asked questions
What is a diff checker?
What is a diff checker used for?
What do the colors mean?
What is the difference between a line diff and a word diff?
Can I compare two text files?
What is the side-by-side view?
How long can the texts be?
What does the HTML export contain?
Is the diff checker free, and are my texts sent anywhere?
Related tools
- Word CounterCounts words, characters and sentences and estimates reading time.
- HTML CleanerRemoves unneeded attributes, styles and tags from HTML.
- Regex TesterTests regular expressions with live match highlighting.
- Readability CheckerScores how easy a text is to read with Flesch-Kincaid and other formulas.
Changelog
November 20, 2026
Lines side by side, export, and options
- • Added this English version of the tool
- • Fixed: In line mode, changed lines sit next to each other at the same height in the side-by-side view and in the HTML export, instead of being offset below each other
- • Fixed: The HTML export in word and character mode is now flowing text with markings, as on screen, instead of every word on its own line
- • Fixed: The word marking in changed lines has a total budget and no longer freezes the browser with many long lines
- • "Ignore whitespace" is disabled in character mode and "Trim lines" outside line mode, because they have no effect there
- • The FAQ explains the size limits and the contents of the HTML export
November 18, 2026
Line breaks from Windows and Mac
- • Pasted text with Windows (CRLF) or old Mac (CR) line breaks is no longer marked as changed when it doesn't differ otherwise
- • This applies in all three comparison modes
November 17, 2026
Load text files and word marking in line mode
- • Load text files (.txt, .md, .csv, .json, .html, .xml, .css, .js, and more) up to 1 MB per field, locally in the browser and without upload
- • In line mode, the tool marks the words that differ within changed lines
- • Changed the heading of the comparison card so it doesn't repeat the page heading
- • Added a guide with instructions and use cases below the tool
- • Added related tools at the end of the page
Show older versions
December 9, 2025
Launch
- • Line-based text comparison
- • Word-based text comparison
- • Character-based comparison
- • Side-by-side view
- • Inline view (unified diff)
- • Statistics about the changes
- • Whitespace options
- • Export as HTML
- • Processing in the browser