🔀

Git Diff Online — Myers Algorithm · .diff Export · GitHub URL Import

Real-time diff · Character-level · AI summary · Merge mode · Timeline · Git export · 100% browser

Left URL
Right URL
original
modified
ORIGINAL — original
MODIFIED — modified
S SwapCtrl+L ClearCtrl+S Download .diffCtrl+Shift+C Copy unifiedP PinF Fullscreen
💡

Generate and view git-style diffs online. Uses the Myers diff algorithm — the same algorithm used by git. Export as standard .diff (git patch) format that can be applied with git apply. Import code directly from GitHub raw URLs and Gist links.

What is a Code Diff Checker?

A diff checker compares two versions of text or code and highlights what changed. It shows added lines in green, removed lines in red, and changed lines in amber — exactly like git diff or a pull request review on GitHub.

Key Features

This tool includes side-by-side and inline views, character-level diff highlighting (exact words that changed), three diff algorithms (Myers, Patience, Histogram), AI-powered plain English summaries, 3-way merge mode, change timeline, and multiple export formats including .diff (git patch) and HTML reports.

Frequently Asked Questions

What is a git diff?

git diff shows the differences between two versions of a file using the Myers algorithm. Lines starting with + are additions, lines with - are removals, and lines with a space are unchanged context.

Can I apply the exported .diff file?

Yes. The exported .diff file follows standard unified diff format. Apply it with: git apply diff.patch or patch -p1 < diff.patch. Works with any git repository.

How do I import from GitHub?

Paste the raw file URL: github.com/user/repo → click "Raw" → copy URL → paste in the URL field. Or use a Gist URL. The tool fetches and loads the content. Note: CORS restrictions may block some private repos.