Code Diff Viewer
Compare two blocks of code or text line-by-line, word-by-word, or character-by-character.
About this tool
The Code Diff Viewer compares two pieces of text — paste the original in one panel and the modified version in the other — and highlights exactly what changed. Three comparison modes are available: Line (best for comparing whole files or config blocks), Word (best for prose or single-line changes), and Character (best for spotting a single typo or subtle formatting difference).
Added content is highlighted in green, removed content in red with a strikethrough, so you can scan a diff visually without reading a raw patch format. A stats line summarizes the total lines added and removed, computed consistently from a line-level diff regardless of which view mode you're currently looking at — so switching between Word and Character views for closer inspection doesn't change the headline numbers.
A Copy button grabs a standard unified-diff-style text rendering, ready to paste into a commit message, code review comment, or bug report — even if you were viewing the Word or Character mode when you copied it. This tool is useful for comparing two versions of a config file, reviewing a colleague's pasted code snippet against your own, checking what changed between two API responses, or diffing translated strings. Everything runs locally using the same diffing library (Myers diff algorithm) that powers many desktop diff tools — no file is uploaded anywhere.
