Text Diff guide

How to Compare Text and Read Added or Removed Lines

Compare two texts line by line, inspect additions and deletions and optionally ignore whitespace. Understand line-ending normalization and comparison size limits.

Open Text Diff →

Before you start

  • Use a current browser with JavaScript enabled. Read the limits below before using private or large inputs.

Step-by-step instructions

  1. Paste the original text in Before and the updated text in After.
  2. Enable Ignore whitespace only if spacing differences do not matter to your task.
  3. Click Compare to see added, removed and unchanged lines.
  4. Read + for added and − for removed; unchanged lines have no change marker.
  5. Copy the comparison or Clear both inputs. Example shows a small configuration change.

Interpret results and limitations

Comparison uses a bounded longest-common-subsequence algorithm with at most 1,000 lines and 100,000 characters per side. It compares lines, not individual words, and has no patch-application feature.

CRLF line endings are normalized to LF; trailing newlines are still compared. Ignore whitespace trims each line and collapses runs of whitespace for comparison, while displayed content is preserved. All text is rendered as text rather than injected HTML.

Example

Use this example to understand the expected behavior before working with your own input.

Before: status: draft
After: status: ready
- status: draft
+ status: ready

Troubleshooting

A whitespace change is missing

Disable Ignore whitespace and compare again. CRLF-versus-LF differences are intentionally normalized even in exact mode.

The interface does not respond

Enable JavaScript, use a supported browser and check the input limits. Reloading clears temporary input and results.

Privacy and cleanup

Inputs and results stay in the current tab. Nothing is uploaded or stored in input history. Optional analytics receives fixed tool identifiers only; entered data, file names and generated values are excluded.

Read the Privacy Policy for site preferences, optional analytics and hosting information.

Related tools and guides

Use Text Diff with the steps above, or continue with a related task.

Technical references

These references explain the underlying formats or browser behavior. The steps above describe the current AnyUtils tool.

Usage analytics settings

Optional analytics helps us improve tools. Tool input, recordings and search text are excluded from our events. Privacy policy

Usage analytics is off unless you enable it.