Private browser-based diff

Text Comparison & Difference Checker

Compare two versions of text, source code or JSON and see exactly what was added, removed or changed.

Your comparison stays private. Files and pasted text are processed only inside this browser.

A

Original text

Paste text or open a file

0 lines 0 words 0 characters

B

Changed text

Paste text or open a file

0 lines 0 words 0 characters

Ctrl/⌘ + Enter
Comparison settings
Compare by
Ignore
Display

Add text to both sides, then choose Compare text.

Made for careful reviews

Compare code, content and structured data

A clear diff makes a review faster: additions are green, deletions are red, and edited fragments are highlighted inside each modified line.

Review source code

Compare a before-and-after function, configuration file or query. Keep line numbers visible, jump between edits and export a patch for another developer.

Compare JSON properly

Normalise indentation and object key order before comparing API responses, package files or settings. Invalid JSON is identified before the result is drawn.

Proofread revisions

Find a changed word, removed sentence or punctuation edit in articles, emails, policies and other plain text without rereading every unchanged line.

How to compare two texts

Find every edit in four steps

  1. 1

    Add the original. Paste text or open the older source file in panel A.

  2. 2

    Add the revision. Paste or open the changed version in panel B.

  3. 3

    Choose the right comparison. Use Lines for code, Words for prose, Characters for exact edits or JSON for structured data.

  4. 4

    Review and export. Move through each difference, switch views, copy the result or download a unified patch.

Text comparison questions

Difference checker FAQ

Can I compare source code with this difference checker?

Yes. Paste or open plain-text source files such as HTML, CSS, JavaScript, TypeScript, PHP, Python, Java, C, C++, SQL, XML or configuration files. Line numbers and character-level highlights make small code changes easier to find.

Does Bobek upload or save the text I compare?

No. The comparison runs locally in your browser. Text you paste and files you open are not sent to Bobek, stored in an account or added to a database.

Can the tool ignore whitespace and capitalisation?

Yes. You can ignore leading and trailing whitespace, all whitespace, blank lines or letter case. These controls are useful when formatting changes would otherwise hide more meaningful edits.

How does JSON comparison work?

JSON mode parses both values, sorts object keys recursively and formats them consistently before comparison. This reveals changes in values and structure without treating a different key order as a change.

What is a unified diff file?

A unified diff is a standard text representation of changes. Removed lines start with a minus sign, added lines start with a plus sign, and nearby unchanged lines provide context. Developers can read it or apply compatible patches in other tools.

What file types and sizes can I compare?

The file picker accepts plain-text and common code, data and configuration formats. Each file can be up to 5 MB. Binary office documents, PDFs and images are not decoded by this text comparison tool.