Zum Hauptinhalt springen
PlusDeveloper Tools

Code Diff

Two texts, one difference - and you spot it instantly. Code Diff compares two versions line by line, highlights every insertion, deletion and change in colour, and even pinpoints the single word that moved. Whether it is rental contract v1 against v2, old terms against new, or a piece of code before and after a refactor.

A live look inside

Live preview. It becomes interactive with your account.

What Code Diff does

Something changed, but what exactly? That question comes up constantly: the landlord sends a new version of the lease, the tax office a corrected schedule, a colleague a reworked config file. Comparing line by line by hand is tedious and error-prone - you always miss the one small clause that matters. Code Diff makes the differences visible so nothing slips past you.

Under the hood it runs the Myers diff algorithm, the same approach git uses. It finds the shortest sequence of edits between two texts instead of naively pitting line against line. The result is a clean diff that recognises moved blocks and does not mark everything after a single inserted blank line as changed.

You can switch between two views. Side-by-side shows old on the left, new on the right, with synchronised scrolling. The unified view stacks them, the way diffs look in a terminal. Changed lines also get word or character level highlighting, so you see not just that a line changed but which word. A minimap on the edge shows every change at a glance and jumps straight to it on click.

Unimportant differences can be hidden. Ignore whitespace, case, or blank lines when only the content matters. Unchanged blocks collapse into compact context lines, so in long documents you only see the places where something actually happened.

For code there is syntax highlighting for JavaScript, TypeScript, Python, HTML, CSS, JSON, SQL and XML. Twelve ready-made examples - from a rental contract and a tax return to a ZUGFeRD invoice and an Nginx config - show you how the tool works instantly, with no need to paste your own text first.

The finished comparison exports as a unified diff, the format developers know and version control understands. Best of all, everything runs entirely in your browser. Not a single line of text is sent to a server, no contract, no code, no trade secret leaves your device. It is fast, works offline, and is exactly as confidential as a text comparison should be.

Features

Word and character level diff

Not just changed lines - the individual changed word or character is highlighted in colour.

Side-by-side or unified

Two views: old and new side by side with synced scrolling, or stacked like a terminal diff.

Myers algorithm

The same diff logic as git. Finds the shortest edit sequence instead of naive line-by-line.

Ignore differences

Hide whitespace, case, or blank lines when only the content matters.

Syntax highlighting

JavaScript, TypeScript, Python, HTML, CSS, JSON, SQL and XML are shown with colour.

Minimap and jump markers

An overview on the edge shows all changes and jumps to the next one on click.

Ready-made examples

Twelve presets from a rental contract to a ZUGFeRD invoice show how the comparison works instantly.

Runs in the browser, no upload

No text leaves your device. Ideal for contracts, code and anything confidential. Works offline.

How it works

  1. 1

    Paste both texts

    Old version on the left, new on the right. Type, paste, or drop a file via drag and drop.

  2. 2

    Run the comparison

    The diff appears instantly with coloured markers for every insertion, deletion and change.

  3. 3

    Adjust view and filters

    Pick side-by-side or unified, turn on syntax highlighting, or ignore whitespace and case.

  4. 4

    Export the result

    Download the comparison as a unified diff or copy it - ready to share or archive.

Who needs this

→Tenants who want to compare a new contract version with the old one.
→Freelancers and businesses cross-checking versions of terms or quotes.
→Developers comparing two code states before a commit.
→Bookkeepers checking a corrected invoice or e-invoice against the original.
→Anyone reviewing configuration files before and after.

Frequently asked questions

Are my texts uploaded?

No. The entire comparison runs in your browser. No text, contract or code is sent to a server. The tool even works offline.

What is the difference between word and character diff?

Word diff highlights whole changed words, character diff goes down to the individual letter. For prose the word diff is usually clearer, for numbers and codes the character diff helps spot the tiniest deviation.

Can I compare contracts and legal texts too?

Yes, the tool is ideal for that. Just paste both versions, for example old and new terms or lease v1 and v2. Since nothing is uploaded, confidential documents stay on your device.

How do I ignore unimportant differences?

Turn on the options for whitespace, case, or blank lines. Then only the content difference counts and formatting-related deviations are hidden.

Which programming languages are highlighted?

JavaScript, TypeScript, Python, HTML, CSS, JSON, SQL and XML get colour highlighting. For anything else there is plain text mode, which compares just as reliably.

What format can I save the result in?

You can export the comparison as a unified diff, the standard format developers know and version control like git understands. The diff can also be copied to the clipboard.

Does it work with very large files too?

Yes. For very large texts the tool automatically switches to a memory-efficient method so the browser does not stall.

Text & Contract Diff Viewer

Compare two texts or contract versions word-by-word and instantly see what changed. Words are…

Track-Change Scrubber

Remove tracked changes, comments, author information, and hidden metadata from Word documents…

JSON Formatter

Format, validate, and minify JSON with syntax highlighting and error detection. Free, runs in…

SQL Formatter

Format and minify SQL queries with syntax highlighting.

Markdown Preview

Write Markdown with live preview, split view, toolbar, syntax highlighting, templates, tabs a…

Ready to use Code Diff?

No installation. No account needed to start. Open it right in your browser.

Open now