Skip to main content
Werkzeu.ge
Dashboard
Compares two versions and highlights the differences, all locally in your browser. The line diff is mechanical - the judgment is yours.
PlusStrumenti per sviluppatori

Code-Diff - Confronto di codice

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.

Uno sguardo dentro

Strumenti per sviluppatoriCode-Diff - Confronto di codiceDemo fittizia | Plus
✓Protetto
Controllo della privacy

Word and character level diff

1Word and character level diff
2Side-by-side or unified
3Myers algorithm
4Ignore differences
Anteprima di sola lettura. Per usarlo, apri lo strumento.

Questa anteprima sicura mostra a cosa serve lo strumento, senza eseguire azioni legate all'account.

Cosa sa fare Code-Diff - Confronto di codice

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 does not mark everything after a single inserted blank line as changed. Moved blocks show up as removed in one place and added in the other.

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.

Funzioni

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.

Come funziona

  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.

A chi serve

→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.

Domande frequenti

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.

Vertragsvergleich - Confronto di testi e contratti

Vergleiche zwei Vertragsversionen Wort für Wort, direkt in deinem Browser. Neues grün, Gestri…

Änderungen bereinigen - Rimuovi le modifiche tracciate

Entferne nachverfolgte Änderungen, Kommentare, Autorinformationen und versteckte Metadaten au…

JSON-Formatierer - Formattatore JSON

Formatiere, validiere und minimiere JSON mit Syntaxhervorhebung und Fehlererkennung. Kostenlo…

SQL-Formatierer - Formattatore SQL

Formatiere und minimiere SQL-Abfragen mit Syntaxhervorhebung.

Markdown-Vorschau - Anteprima Markdown

Schreibe Markdown mit Live-Vorschau, Split-Ansicht, Toolbar, Syntax-Highlighting, Vorlagen, T…

Pronto per Code-Diff - Confronto di codice?

Nessuna installazione. Incluso a partire da Plus. Si apre direttamente nel browser.

Apri ora