Text Tool

Diff Checker

Compare two texts and see every difference, down to the word or character. Free and private.

Original text
Changed text
100%
Browser-based
0
Data uploaded
∞
No limits

How it works

Compare any two texts in seconds

01
📋
Paste, open or drop
Add your original and changed texts directly, open a file, or drag a plain-text file onto either editor.
02
🤖
LCS algorithm
The Longest Common Subsequence algorithm finds the minimal set of line changes, then the exact words or characters within each edited line.
03
🔍
Split or unified
Review the result side by side or in a single column. Removals are red, additions are green.

Why BG Bueno Diff

Built for developers and writers

🔒
Fully Private

Your text never leaves your browser. The diff runs entirely on your device — no server, no logs.

📁
File Support

Open or drop any plain-text file — JS, PHP, Python, Markdown, SQL, JSON, YAML, and more.

🎯
Word & Character Precision

See exactly which words or characters changed. Hide unchanged lines, ignore whitespace or case, and diff in real time.

FAQ

Common questions

Is my text sent to a server?
Never. The entire diff algorithm runs in your browser using JavaScript. Your text never leaves your device.
What file types can I upload?
Any plain-text file: .txt, .js, .jsx, .ts, .tsx, .php, .py, .html, .css, .json, .md, .sql, .yaml, .sh, and more. Click Open file or drag the file onto an editor.
What algorithm does this use?
The Longest Common Subsequence (LCS) algorithm — the same approach used by Git and most professional diff tools.
What do the darker highlights mean?
When a line was edited rather than added or removed, the exact words (or characters, in Character mode) that changed are highlighted in darker red (removed) or darker green (added).
What does Real-time diff do?
With it on, the result updates as you type in either editor, so you don't have to click Find difference again after every edit.
What does Hide unchanged lines do?
It collapses long runs of identical lines, keeping a few lines of context around each change. Click a collapsed bar to show those lines again.
Can I compare binary files?
No. The diff checker works on plain text only. Binary files (images, PDFs, Office docs) won't produce meaningful results.
Is there a size limit?
There's no hard limit, but very large texts (tens of thousands of lines) may take a moment to process since everything runs in the browser.

Guide

How to compare texts effectively

A diff checker shows exactly what changed between two versions of a text: which lines were added, removed or edited. It's useful for reviewing contract revisions, checking what an editor changed in an article, comparing configuration files, or finding the one line that broke your code.

How the comparison works

The tool uses the Longest Common Subsequence (LCS) algorithm, the same family of algorithms used by Git and other version-control tools. It finds the largest set of lines the two texts share, in order, and marks everything else as an addition or a deletion. The result is the smallest set of changes that turns the original into the new version.

Split view vs unified view

  • Split view puts the original and changed texts side by side. It's the easiest way to read through edits to prose or documents.
  • Unified view shows a single column, with removed lines marked − and added lines marked +, like a Git diff. It's compact and familiar for reviewing code.

Tips for cleaner comparisons

  • Paste plain text. Text copied from Word or PDFs may contain different line breaks or invisible characters that show up as changes.
  • If a whole paragraph shows as changed, check for differences in line wrapping. Re-wrapped text is a different line to a diff tool.
  • Trailing spaces and tab-versus-space indentation count as changes. Normalise them first if they don't matter to you.
  • For code, open the files directly with the file buttons to avoid copy-paste formatting problems.

Private by design

Comparisons run entirely in your browser. Nothing you paste is sent to a server or stored, so it's safe for contracts, credentials in config files, and unpublished writing.