TEXT TOOL

Text Diff

Compare two blocks of text line by line.

  

About Text Diff

This tool answers a narrow question: which lines in one block of text are also in another, and which are not. Paste the first version into the top box and the second version into the box below it. The result lists every distinct line once, with a two-space prefix when the line exists in both blocks, a minus sign when it appears only in the first, and a plus sign when it appears only in the second.

That makes it a good fit for lists rather than prose. Two exports of email addresses, two sets of configuration keys, two lists of file names or a before and after copy of a checklist all compare well, because order is not what matters. You can see at a glance which entries were removed and which were added without scanning both columns by eye.

It is important to understand that this is not the kind of diff used in version control. It does not align lines by position, detect moved or changed lines, or highlight edits inside a line. A line that was edited by one character simply shows up as one removed line and one added line. For code review of a changed file, a full diff tool is a better choice.

How to use Text Diff

  1. Paste the original or older text into the first box, labeled Enter input, with one item per line if you are comparing a list.
  2. Paste the newer or other text into the second box, which has the placeholder Second input. Order matters only for how the result is labeled.
  3. Read the result panel. Lines starting with two spaces are in both, lines starting with a minus are only in the first, and lines starting with a plus are only in the second.
  4. Scan for minus and plus lines only, ignoring the unmarked ones, since those are the differences you were looking for.
  5. Choose Copy result to place the full marked list on your clipboard, for example to paste into a ticket or a message.

When this tool helps

Compare two exported lists

Take a list of customers, tags or IDs from last month and one from this month. The plus and minus markers show who is new and who dropped off, without sorting either list first.

Check what a teammate added

You have two versions of a to-do list, glossary or set of release notes. Paste both and look for lines marked with a plus to see what was added, and a minus to see what was removed.

Find missing configuration keys

Compare the keys in a sample environment file against your real one. Lines that appear only in one block reveal settings that were forgotten or left behind.

Spot accidental edits

When a line should be identical in two documents but a search turns up a mismatch, comparing the blocks reveals which exact line differs, including stray spaces or a changed letter case.

Tips for better results

  • Clean the lists before comparing. Differences in capitalization, trailing spaces or invisible characters make otherwise identical lines count as different, so trim and normalize both sides first for a fair result.
  • If a changed line appears once as a minus and once as a plus, look for the near-identical pair. That pattern is how a single edited line is reported by this tool.
  • For lists where order is irrelevant, sorting is not needed. The check looks for each line anywhere in the other block, so the same set in a different order shows no differences.
  • Blank lines are treated as lines too. If both blocks contain an empty line, it appears once as an unmarked line, so do not be surprised by a blank entry in the result.
  • Use the result as a checklist: work down the minus lines to see what needs adding to the second block and down the plus lines for what needs removing or reviewing.

Good to know

  • Each distinct line is listed only once. If a line is repeated three times in one block and once in the other, it is reported as present in both, so duplicate counts are not compared.
  • Line order and position are ignored. Moving a paragraph, reordering a list or swapping two lines produces no differences at all, and the tool cannot show where in the text a line sits.
  • Comparison is exact and works on whole lines. There is no word-level or character-level highlighting, no color, and no option to ignore case or whitespace. Very large inputs may be slow because each line is looked up repeatedly.

Privacy and your data

The comparison runs in your browser. The text you paste is not intentionally uploaded to a server.

Text Diff FAQ

How does this text comparison work?

It splits each box into lines and checks whether every distinct line exists in the other box. Lines found in both are shown with a two-space prefix, lines only in the first box get a minus, and lines only in the second get a plus.

Is this the same as a Git diff?

No. A Git-style diff aligns the two versions in order and shows exactly what changed, including moved and edited lines in context. This tool just compares sets of lines, so it suits lists and unordered items better than source code or essays.

Does the order of lines matter?

No. A line is considered present in both blocks wherever it appears. If you only reorder lines, the result shows no differences, so use a different tool if the sequence of lines is part of what you need to verify.

Why does an edited line show up twice?

The tool has no concept of a changed line. The old wording exists only in the first block and the new wording only in the second, so you see one line with a minus and a near-identical one with a plus.

Does it ignore case or extra spaces?

No. The comparison is exact, so a capital letter or a trailing space makes two lines different. If you want a looser match, convert both blocks to the same case and trim the whitespace before comparing.

Can I compare two files with this?

There is no file picker. You open each file in a text editor, copy its contents and paste them into the two boxes. This works well for plain text, CSV rows, log lines and similar line-based content.

Browse all ELDOSA tools →