A Helpful Website

A set of helpful tools

Text Diff

Paste two versions of a text into the boxes below and click Compare to see the differences. Added lines are highlighted in green, removed lines in red. All processing happens in your browser. No data is sent to any server.

Why Compare Text?

Comparing two versions of a text is one of the most common tasks in writing, development, and legal work. Writers revise drafts and need to see what changed. Developers compare configuration files, code snippets, or JSON outputs. Legal professionals compare contract versions. System administrators compare log files. Our free Text Diff tool makes this fast and easy.

How Text Diff Works

This tool compares your two texts line by line using a standard diff algorithm. It finds the longest common sequence of lines between the two versions and then marks everything else as either added or removed. This means you get an accurate view of what changed, even if lines were inserted or deleted in the middle of the text.

Line-by-Line Comparison

The comparison is done at the line level, so any change within a line will cause that entire line to be marked as changed. For code and structured text, this is usually the most useful granularity. If you need character-level comparison, consider breaking the text into shorter lines or using a specialized code diff tool.

Privacy and Speed

Because everything runs in your browser, your texts are never uploaded to any server. This is ideal for sensitive content like legal documents, proprietary code, or private writing. Results appear instantly even for large texts.

How to Use This Tool

Paste your original text into the left box and the modified version into the right box. Click Compare to see the differences. Use Swap to exchange the two sides. Use Clear to start over. The result shows added lines in green, removed lines in red, and unchanged lines in neutral gray. You can scroll through the result to review all changes.