Generate an exact single-file unified text patch locally in a worker.
ReadyRuns in your browser
INPUT & CONTROLS
Prepare your input
Local processing
Each input allows 262,144 UTF-16 units and 2,000 LF-delimited records. LF is retained in each record; final LF differences remain visible. CR is literal content, including CRLF. Browsers can normalize pasted textarea line endings before conversion; the engine preserves exact received strings and cannot reconstruct removed CR. Unsupported controls and malformed UTF-16 reject. Filename: one ASCII basename, 1–128 characters, first alphanumeric, then alphanumeric, dot, underscore or hyphen.
Generates one existing-file unified patch, up to 300,000 output units. Empty input means an empty existing file. Context 0 requires consumer support such as Git --unidiff-zero. Hunk choices may differ from Git heuristics; encoding compatibility depends on the consumer. No file access or patch application. Worker stops after 2,000 ms; edits, example and Clear cancel work.
Runs locally in a worker. Input and patches are not sent or stored.
Result
Your result starts here
Review the input and selected options, then use the primary action. Output and any validation messages will appear here.
METHOD & CONTEXT
Understand the result before using it.
How it works
Compares exact LF-retaining records using bounded interned-ID LCS and deletion-first ties, then emits unified hunks.
Interpretation
Read the result summary first, then inspect the detailed output and any errors or warnings. The result describes the supplied input and selected options. Changing input requires another run.
Assumptions & warnings
Preserves received CR and final-newline differences. Browser textareas may normalize pasted line endings. Empty inputs mean existing empty files. Context zero requires consumer support; patch application is outside this tool.
Inputs are processed in your browser. Follow the input format and size limits shown next to the controls.
Try an example
Select Load example in the input panel, review the selected mode, then use its displayed primary action. Inspect the result before replacing the sample with your own input.