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.
Private browser-based diff
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.
Paste text or open a file
0 lines 0 words 0 characters
Paste text or open a file
0 lines 0 words 0 characters
Add text to both sides, then choose Compare text.
Comparison result
| Original | Changed |
|---|
| Old | New | Change | Content |
|---|
Made for careful reviews
A clear diff makes a review faster: additions are green, deletions are red, and edited fragments are highlighted inside each modified line.
Compare a before-and-after function, configuration file or query. Keep line numbers visible, jump between edits and export a patch for another developer.
Normalise indentation and object key order before comparing API responses, package files or settings. Invalid JSON is identified before the result is drawn.
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
Add the original. Paste text or open the older source file in panel A.
Add the revision. Paste or open the changed version in panel B.
Choose the right comparison. Use Lines for code, Words for prose, Characters for exact edits or JSON for structured data.
Review and export. Move through each difference, switch views, copy the result or download a unified patch.
Text comparison questions
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.
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.
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.
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.
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.
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.