Skip to content

Tools/Text diff

Text diff

Unified diffs and apply patch in the browser.

Loading tool…

How to use Text diff

  1. 1. Paste left and right. Or drop a file on the left.
  2. 2. Copy the unified diff. git-apply style.
  3. 3. Optional: paste a patch. Applied to the left.
  4. 4. Watch failures. Context mismatches throw.

About this tool

A unified diff is the lingua franca of code review. Building and applying one locally is useful when the files never should hit a gist.

Context

jsdiff uses default context lines. Huge moves may look noisy.

Binary

Don't. Use hash compare.

Code examples

diff

--- a
+++ b
@@ -1 +1 @@
-old
+new

Frequently asked questions

Related tools

All tools