Text Compare

Review text changes side by side, jump between them and export HTML or a line patch.

On-device No sign-up Free to use

Compare controls

Showing an example. Edit to see your own.

?

The version you want to compare against.

?

The version you want to check for changes.

Drop your text file here

or choose one from your device

Up to 400,000 bytes. A chosen file replaces the original pasted text; comparison limits still apply.

    Drop your text file here

    or choose one from your device

    Up to 400,000 bytes. A chosen file replaces the changed pasted text; comparison limits still apply.

      ?

      Line comparison shows changed lines with a few unchanged lines around them.

      ?

      Treats Hello and hello as the same text.

      ?

      Collapses repeated spaces and blank lines before comparing.

      ?

      Removes Unicode punctuation before comparing. Symbols, accents and spacing remain significant unless you select another option.

      3 lines
      ?

      Used by the line comparison only.

      Processed in your browser. Your inputs stay on this device.

      Result

      Showing an example.

      Spot a one-word edit between two versions of a sentence.

      The marked text shows delta added and beta removed, with 1 added and 1 removed word and about 70.6% of the text unchanged.

      Loading the tool. Your result will appear here.

      https://usefreetools.net/text-compare · 20 November 2026

      Was this helpful?

      How to use Text Compare

      1. Paste the older version into Original text.
      2. Paste the newer version into Changed text.
      3. Choose Words, Lines, Characters or Sentences in Compare by.
      4. The comparison updates as you change either version. Read removed text on the left and added text on the right, or use the inline diff below.
      5. Use Previous change and Next change in the side-by-side result. Download marked HTML, or choose line comparison for a unified patch.

      Example: Text Compare

      Spot a one-word edit between two versions of a sentence.

      You add
      Original text: alpha beta gamma. Changed text: alpha delta gamma. Compare by Words.
      You get
      The marked text shows delta added and beta removed, with 1 added and 1 removed word and about 70.6% of the text unchanged.

      Options

      Compare by
      Words suits prose edits, Lines suits code and lists, Characters suits a short string, and Sentences suits whole-sentence changes. Line comparison shows changed lines with a few unchanged lines around them.
      Ignore letter case
      Treats Hello and hello as the same text before comparing. Useful when someone restyled a heading without changing the words.
      Ignore spacing differences
      In Words, Characters and Sentences modes, trims the text and collapses whitespace runs to one space. In Lines mode, removes trailing spaces and tabs and reduces repeated blank lines; spaces within a line and CRLF versus LF endings can still report as changes.
      Unchanged lines shown around changes
      Sets how much surrounding context the line comparison prints, from 0 to 10 lines. No effect on the other three modes.
      Marked HTML download
      A standalone comparison document escapes source markup and marks additions and removals. It does not execute pasted HTML.
      Unified line patch
      Available for line comparison. The patch records differences between the actual input texts, including spacing that a comparison filter may hide.

      Supported inputs and limits

      • Use pasted plain text or supported UTF-8 text files.
      • Word documents, comments and document formatting are not parsed; export or copy their text first.
      • Each comparison has a cap counting both sides together: 50,000 characters for Characters, 300,000 for Words and Sentences, and 400,000 for Lines.
      • Line mode also stops at 20,000 lines per side.
      • Long or very different inputs can exceed the edit budget; compare smaller sections or switch to line mode.
      More details

      Line output is shortened after 2,000 lines.

      Navigation covers the displayed side-by-side sections.

      The HTML export includes the complete accepted comparison.

      Where your input is processed

      This tool does not upload your inputs. See the limits for anything saved on your device.

      Choosing between word, line and character comparison

      Each mode splits the text differently, and that changes what counts as a change. Word comparison is the most readable for prose: it marks the words that came and went without breaking a sentence apart. Line comparison works on the unit that code, logs and CSV files already use, so a changed value is one changed line rather than a scattering of edits. Character comparison is the strictest and finds a single edited letter, which suits checking an ID, but it is also the slowest and has the smallest size limit. Sentence comparison quickly shows whether a paragraph was rewritten wholesale.

      Questions about Text Compare

      Why did my comparison stop with an error about the texts being too different?

      The comparison runs on a fixed edit budget so the page stays responsive. If the two texts share little in common, or they are very long, that budget runs out. Compare smaller sections, or switch to Lines.

      What does the similarity figure mean?

      It is the unchanged characters divided by the length of the longer side, as a percentage. Two texts that read the same but differ in wording will still score below 100.

      Which mode should I use for code or a CSV file?

      Use Lines. It reports changed lines with the surrounding unchanged lines, and it avoids the tighter limit that Characters mode applies.

      Does it ignore formatting such as bold or italics?

      Yes. Only the characters you paste are compared, so a bold word that is otherwise identical is reported as unchanged.

      Why do my two texts look identical but score below 100?

      Hidden differences such as a curly apostrophe, a non-breaking space or a different line ending will register. Turn on Ignore spacing differences and compare again.

      Page updated · Project managed by Tony Hines · Report a problem with Text Compare

      Related reading

      All guides