Text Diff Inline — Character-Level Diff Highlighter
Compare two texts with inline character-level or word-level diff highlighting.
What Is Text Diff Inline?
Text Diff Inline is an online tool that compares two texts and highlights differences within the same output — showing added text in green and removed text in red, inline. Unlike traditional line-by-line diff tools, inline diff lets you see exactly which characters or words changed without switching between two panels. It supports three granularity modes: character, word, and line. The diff is computed using the Longest Common Subsequence (LCS) algorithm, entirely in your browser.
How to Use Text Diff Inline
- Paste the original text into the Original panel.
- Paste the modified text into the Modified panel.
- Choose a diff mode: Character, Word, or Line.
- The inline diff appears below, with additions highlighted in green and deletions in red with strikethrough.
- Click Copy to copy the plain text result.
Features
- Three diff modes — character, word, and line granularity
- Inline highlighting — additions in green, deletions in red with strikethrough
- Change counters — shows total added and removed characters
- LCS algorithm — minimal diff with no false positives
- Privacy-first — all processing is local, no server involved
FAQ
What is inline diff?
Inline diff shows additions and deletions within the same line of text, highlighted in green (added) and red (removed). Unlike side-by-side diff which shows whole lines, inline diff pinpoints the exact characters or words that changed.
What is the difference between character, word, and line mode?
Character mode highlights individual characters that changed — useful for spotting typos. Word mode highlights whole words — better for prose and code. Line mode highlights entire lines — similar to a standard diff output.
What algorithm does this tool use?
This tool uses the Longest Common Subsequence (LCS) algorithm to compute the minimal set of changes between two texts. It runs entirely in your browser with no server involved.
Is my data sent to a server?
No. All diff computation happens entirely in your browser using JavaScript. No data is sent to any server.