Free tools · files stay in this tab

Compare two texts and export a patch

Text Diff compares an original and a changed version and marks what was added and removed. You can copy the result as a unified patch or download it as a .patch file.

Use it to check what changed between two drafts of a policy, a cover letter, or a config snippet. A moved paragraph can show up as a delete plus an insert. Whitespace-only changes can look noisy, so normalize line endings if the result looks messy.

Both texts stay in this tab. Refreshing clears the boxes. There is no account history, so copy the version you want to keep.

Guides · About · Privacy · This tool

Text Diff — compare two strings side by side

Text Diff highlights insertions and deletions between a left and right string. Use it for copy edits, policy drafts, or two versions of a paragraph. Comparison runs in this tab.

Who this is for

Who this is not for

How to use it

  1. Paste version A and version B. Keep both sides in the same order of sections so the diff stays readable.
  2. Read the marks. Added and removed spans are colored. A moved paragraph may look like a delete plus an insert.
  3. Copy the winner. This page does not save a third merged file unless you copy it yourself.

Limits

How the comparison works

Paste the older version into Original Text (Before) and the newer one into Modified Text (After). The comparison is line by line: a line that changed at all shows as one removed line and one added line. Side-by-Side View lists every line in order in one column, with removed lines shaded red and marked with a minus and added lines shaded green and marked with a plus. Unified Git Patch shows the same changes in the standard patch format that git and code review tools read.

Ignore Whitespace treats lines that differ only in spacing as the same. Ignore Case treats upper and lower case as the same. The text on screen keeps its original case and spacing either way. The counters show added, removed, and unchanged lines, plus how the word and character counts changed.

Reading the result

A line that was edited appears as a red removal directly followed by a green addition, so read the pair together to see the change. Unchanged lines give context. If almost every line shows as changed, the two texts probably use different line endings or one was re-wrapped; turn on Ignore Whitespace, or paste both through a plain text editor first.

Good uses

Check what a colleague changed in a policy draft before you sign off. Compare two versions of a config file before deploying. Confirm that a long hash or key you were sent matches the one you expected by pasting both. Swap Panes reverses old and new if you pasted them the wrong way round.

Tips

Questions

Do you store the drafts?
No. Both sides live in this tab until you close or refresh it.
Does it highlight changed words inside a line?
No. Changes are shown per line. Split long paragraphs into sentences to narrow down where an edit is.
Can I compare Word or PDF files?
Paste their text. To get text out of a DOCX, use File Converter to export TXT first.

Related guides

Operator: Souren Das, Bengaluru. Guides: filetoolskit.com/guides. Privacy: Privacy. Support: support@filetoolskit.com.

Featured on Launch Llama Tools Verified on directree Featured on SumoDir