A browser extension for Chrome and Firefox that lets you compare two texts instantly — right from your toolbar. Highlights differences by word, line, or character with a clean teal UI and light/dark theme.
- Three diff modes: Word, Line, Character — each with distinct highlight colors
- Light & dark theme — remembers your preference
- Swap — swap the two texts with one click
- Keyboard shortcut —
Ctrl+Enterto run diff - Zero permissions — fully self-contained, nothing leaves your browser
- Works on Chrome, Edge, Brave (Manifest V3) and Firefox (v109+)
- Go to
chrome://extensions(oredge://extensions) - Enable Developer mode (top-right toggle)
- Click Load unpacked
- Select the
difftext-extensionfolder - The ⟺ icon appears in your toolbar
- Go to
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on…
- Navigate to the
difftext-extensionfolder and selectmanifest.json - The ⟺ icon appears in your toolbar
Note: Temporary add-ons in Firefox are removed when the browser restarts. To install permanently, the extension needs to be signed by Mozilla.
- Click the ⟺ DiffText icon in your browser toolbar
- Paste your original text in the left panel
- Paste your modified text in the right panel
- Select a diff mode: Word, Line, or Character
- Click Run Diff (or press
Ctrl+Enter) - Click ✏️ Edit to go back and change the text
difftext-extension/
├── manifest.json — Manifest V3 (Chrome + Firefox)
├── popup.html — Extension popup UI
├── popup.css — Styles (teal brand, light/dark theme)
├── popup.js — LCS diff engine + UI logic
├── generate-icons.js — One-time icon generator (Node.js, no dependencies)
├── icons/
│ ├── icon-16.png — Toolbar icon
│ ├── icon-48.png — Extensions page
│ └── icon-128.png — Store listing
└── README.md
The full web app version is available at: 👉 github.com/AbdulSubhan1/difftext