# Diff & Patch Generator

> Compare two texts line-by-line, visualize differences, and download the output as a patch file.

- Open in browser: https://pockettoolbox.org/en/diff-generator
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Compare two text versions line-by-line and create standard patch files.

The tool performs a line-by-line comparison between the original and modified text entirely in your browser. It highlights additions (green) and deletions (red) and exports the result as a standard Unified Diff patch file (.patch).

Employs the Myers diff algorithm for line-by-line comparison. Generates standard Unified Diff files with line counts and visual diff highlighting.

---
PocketToolbox (https://pockettoolbox.org/en)
