Skip to main content

Diff checker

Compare two texts or two text files and find every difference. Compare by line, word, or character.

Your texts

Paste the original and the changed text, or load a text file into each field

Comparison mode:
0 characters
0 characters

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.

  1. 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.
  2. Choose the comparison mode and, if needed, the options for upper and lower case or whitespace.
  3. 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.

ModeGood forMaximum, both texts together
LinesLists, code, configuration files, and texts with many paragraphs2,000 lines
WordsRevised running text where single words change4,000 word parts, where words and the spaces between them count separately
CharactersTypos, swapped digits, and the smallest differences3,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

Everything about the diff checker
What is a diff checker?
A diff checker compares two texts and shows the differences. It marks added, removed, and unchanged lines or words, so you can see what changed between two versions.
What is a diff checker used for?
Common uses are code reviews (checking changes in source code), comparing document versions, checking content updates on web pages, finding changed clauses in a contract, and reviewing edits from a proofreader.
What do the colors mean?
Green marks added content that appears only in the new text. Red marks removed content that was only in the old text. Gray or unmarked areas are unchanged and identical in both texts.
What is the difference between a line diff and a word diff?
A line diff compares whole lines. A line is either added, removed, or unchanged. The tool also marks the changed words within a changed line. A word diff compares single words across the whole text, which is more precise for small changes in running text.
Can I compare two text files?
Yes. Click 'Load file' for both fields and choose a text file for each, for example .txt, .md, .csv, .json, .html, .xml, .css, or .js. The files can be up to 1 MB and must be UTF-8 encoded. They aren't uploaded, your browser reads them locally. The tool can't compare Word documents, PDFs, or other binary files. Copy their text into the fields instead.
What is the side-by-side view?
The side-by-side view shows both texts next to each other. The original is on the left and the new text on the right. In line mode, a removed line and an added line that directly follow each other sit next to each other at the same height. If one side has more changed lines, an empty line stays opposite. In word and character mode, the text runs as flowing text in both columns, with the removed parts on the left and the added parts on the right.
How long can the texts be?
That depends on the mode. Both texts together can have at most 2,000 lines (line mode), 4,000 word parts (word mode, where words and spaces count separately), or 3,000 characters (character mode). Text files can be at most 1 MB. If you go over, the tool names the limit, and you shorten the text or switch the mode.
What does the HTML export contain?
The export saves the current result in the selected view (side by side or inline) as a standalone HTML file with color markings. In line mode, it contains line numbers and the marked words of changed lines. In word and character mode, it contains the text as flowing text with markings. Statistics and the selected options aren't included.
Is the diff checker free, and are my texts sent anywhere?
It is free and needs no sign-up. The comparison runs entirely in your browser. The tool doesn't send your texts to a server.

Related tools

All tools

Changelog

Latest updates and improvements to the diff checker
v1.3.0

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
v1.2.0

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
v1.1.0

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
v1.0.0

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