Text and dataRuns in your browser

Line-by-Line Text and Code Diff Checker

Compare the original and changed text, review the summary, and copy a unified diff. Text is not uploaded and changes are not applied to files.

  • Line-level diff
  • Up to 5,000 lines per side
  • No patch application
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Input

The comparison is line-based, normalizes CRLF/CR to LF, and never applies the generated patch.

Result

—

Processing in your browser

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Paste the original text into the first field.

  2. 2

    Paste the changed version and optionally enable trailing-whitespace ignoring.

  3. 3

    Run the comparison, review the summary, and copy the diff.

02

What the tool can do

  • Deterministic line comparison with additions, deletions, and replacement groups.
  • CRLF and CR normalization to LF before comparison.
  • Optional ignoring of spaces and tabs only at the end of each line.
03

Common use cases

  • Reviewing configuration changes before approval.
  • Comparing two versions of a text API response.
  • Finding added and removed lines in a small code fragment.
04

How it works inside

The algorithm uses a size-limited longest common subsequence (LCS) matrix. Equal alternatives are resolved consistently for reproducible output.

The unified diff contains one change block for the full input and is displayed as plain text.

05

Questions and answers

How can I compare old and new text versions?

Paste the original and changed versions into their respective fields. The result shows additions and removals. Normalise line breaks first if needed to make the comparison easier to read.

Will the comparison modify my files?

The tool only displays differences and produces text output. It does not open your files or apply changes to a repository. Split large input into smaller parts if it exceeds the supported size.