# Text Diff

> Compare two texts line by line and see exactly what was added, removed, or kept.

URL: https://uttir.com/text-diff
Categories: text-tools
Privacy: Comparison runs locally in your browser. Neither text is uploaded.

## About

The text diff tool compares two versions of a document line by line and marks each line as added, removed, or unchanged — the same idea as the diff command developers use, but for any text.

It is useful for reviewing edits to articles, contracts, configuration files, or notes, and for spotting what changed between two drafts at a glance.

## How to use

1. **Paste the original** — Left panel: the older version of the text.
2. **Paste the changed version** — Right panel: the newer version.
3. **Read the diff** — Green lines were added, red lines removed, plain lines are unchanged.

## Examples

### One-line edit

Changing a single line shows one removal and one addition.

Input:

```
a
b
c   →   a
c
d
```

Output:

```
  a
− b
  c
+ d
```

## FAQ

### How large can the texts be?

The line-by-line comparison handles thousands of lines comfortably in your browser. Very large documents are rejected with a clear message to keep the page responsive.

### Does it compare words within a line?

No — the comparison is line-based. A line with any change is shown as removed plus added, which keeps results easy to read.

### Does it work on code?

Yes. Line-by-line diff is the same for code and prose. The tool is line-oriented, so it shows which lines changed, were added, or were removed.

## Related tools

- [Word Counter](https://uttir.com/word-counter) — Count words, characters, sentences, and paragraphs in your text instantly.
- [Character Counter](https://uttir.com/character-counter) — Count characters, words, lines, and UTF-8 bytes as you type.

---

For the full HTML page with the live tool, visit https://uttir.com/text-diff.
This file is the markdown rendering at https://uttir.com/text-diff.md. See https://uttir.com/llms.txt for a site-wide summary.
