---
title: "Text Diff Checker with Unified Patch Output | VulCode"
description: "Compare two texts online: paste both versions, see the changed lines and characters and copy a unified diff patch. Free, runs in your browser."
url: "https://vulcode.com/en/tools/text-diff-checker"
lang: "en"
---

[Home](https://vulcode.com/en) [Resources](https://vulcode.com/en/resources) [Tools](https://vulcode.com/en/tools)

# Text diff checker: compare two texts

Compare two texts online: paste both versions, see the changed lines and characters and copy a unified diff patch. Free, runs in your browser.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

File name before

Text before the change 4 lines

File name after

Text after the change 5 lines

Ignore spaces Ignore case

Swap sides

## Differences

## Patch (unified diff)

Copy the patch

```

```

Context lines in the patch come from the Before version, as with diff -w.

## How to use it in three steps

Step by step, with this page's example.

- Paste the old version.

- Paste the new version.

- See the changed lines and copy the patch.

What you enter

Two versions of server.properties: a different max-players and motd, a new white-list line

What you get

```
--- a/server.properties
+++ b/server.properties
@@ -1,4 +1,5 @@
 server-port=25565
-max-players=20
-motd=Test server
+max-players=50
+motd=VulCode server
 online-mode=true
+white-list=true
```

## Questions

- **What is a diff?**: A diff lists the differences between two versions of a text: which lines were added, removed or changed. A unified diff patch writes those differences in a format that patch and git understand.
- **How do I compare two text files online?**: Paste the old version into the first field and the new one into the second. The tool shows the changed lines, highlights the differing characters and gives you a patch to copy. Everything runs in your browser.
- **What is a unified diff patch for?**: You can apply it with patch or git apply, or paste it into a ticket so someone sees the exact change.
- **Does it compare individual characters too?**: Yes, it highlights the differing characters inside changed lines, so even a changed space shows.

## Related tools

The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.

- ### [Regex tester online](https://vulcode.com/en/tools/regex-tester)
  Write a pattern and see live what it matches in your text.

- ### [JSON formatter and validator](https://vulcode.com/en/tools/json-formatter)
  Paste JSON and get it formatted, or the exact place of the error.

- ### [Base64, JWT and hash](https://vulcode.com/en/tools/base64-jwt-and-hash)
  Encode and decode Base64 and get MD5, SHA-256 or SRI from text or a file. A bare JWT and URLs have their own tools.

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
