Unified Diff & Patch Generator
Generate a unified patch between two text files.
Processing stays in your browser. Creates a patch without modifying files. Review paths and changes before applying it.
How to use the unified diff & patch generator
Generate a unified patch between two text files. Complete the original text, updated text, filename, context lines (0–20) fields above, or upload a UTF-8 text file for original text. Choose Run tool, review the output, then copy or download the result.
Example
Replacing Hello with Hello world creates one removed and one added line.
Good to know
Creates a patch without modifying files. Review paths and changes before applying it.