Compare two text blocks and highlight exactly what changed.
Free online text diff checker. Paste two versions of any text, code, JSON, YAML, or SQL into the left and right panels and compare instantly. View changes in side-by-side split mode or classic unified diff mode. Highlights added, removed, and modified lines with optional word-level and character-level inline highlighting. Supports ignore whitespace and ignore case options. Export a standard .patch file or share results via a compressed URL. Runs entirely in your browser — no data is ever sent to a server.
Keywords: text diff, diff checker, diff viewer online, compare text online, online diff, unified diff, side by side diff, code diff, file compare, text compare, diff tool, patch generator, json diff, yaml diff, line diff, word diff
Tags: diff, compare, text, patch, changes, merge
Paste the original version of your text into the left input panel (ORIGINAL).
Paste the updated version into the right input panel (MODIFIED).
Click Compare or press ⌘↵ to generate the diff instantly.
Switch between Split view (side-by-side) and Unified view using the mode toggle.
Copy the standard unified diff patch with ⌘⇧C, download it as a .patch file, or share your diff via a compressed URL.
Side-by-side split view with synchronized scrolling for easy visual comparison
Unified diff view with standard +/- line notation (compatible with git diff output)
Line-level diff with added/removed/context line highlighting
Word-level inline diff: highlights the exact words that changed within a modified line
Character-level inline diff: pinpoints single-character changes for precision review
Ignore whitespace option: strips leading/trailing and internal space differences
Ignore case option: performs case-insensitive comparison
Configurable context lines: show 1–50 surrounding lines for each change hunk
Similarity score: percentage similarity between both texts
Export standard unified diff (.patch format) compatible with git apply and patch
Shareable URLs: gzip-compresses both inputs into a URL for team sharing
Works entirely in your browser — no data is sent to any server