Text diff tool — compare two texts and see exactly what changed.
Paste two versions and get a side-by-side or inline diff by line, word or character, with added and removed parts highlighted. Handy for copy reviews, config files and "what did they change in the terms?"
About this free Text diff.
This free text diff tool compares two pieces of text and highlights what was added and removed. Paste the original on the left and the changed version on the right, then choose whether to compare by line (for code and config files), by word (for prose and marketing copy) or by character (to catch a single changed digit). Options let you ignore whitespace differences or letter case.
It is useful for reviewing copy edits, checking what a colleague changed in a contract or terms page, and spotting drift between two config files. The comparison uses the open-source jsdiff library in your browser, so nothing is uploaded.
Free · No signup · Runs in your browser · Last updated
- Three granularitiesLines, words or characters.
- Side-by-side or inlinePick the view that reads best for the content.
- Ignore whitespaceTreat indentation and spacing changes as no change.
- Ignore caseCompare text case-insensitively.
- Colour-codedAdditions and deletions highlighted clearly.
- PrivateComparison runs entirely in your browser.
How to compare two texts in four steps.
Paste the original
Put the earlier version in the Original box.
Paste the changed text
Put the newer version in the Changed box.
Pick a mode
Words for prose, Lines for code, Characters for precise changes. Tick Ignore whitespace or Ignore case if needed.
Review the highlights
Removed text is marked in one colour and added text in another; switch to side-by-side for long documents.
Text diff questions, answered.
Which mode should I use?
Words for prose and marketing copy, lines for code and config, characters when you need to spot a single changed digit.
Is my text uploaded?
No — the comparison runs in your browser with the open-source jsdiff library.
Can I diff two web pages?
Paste their text here for a one-off. To be told automatically when a page changes — yours or a competitor’s — that’s Page monitoring.
What is the difference between a line diff and a word diff?
A line diff treats each line as a unit, so a single changed word marks the whole line as replaced. A word diff highlights only the words that changed within the line, which is much easier to read for paragraphs of prose.
Can I compare two documents from Word or Google Docs?
Yes, paste the text of each. Formatting such as bold or headings is not compared, only the words. For tracked changes with formatting, use the word processor’s own compare feature.
Does the tool save my text?
No. Nothing is stored or sent anywhere. When you close or refresh the page, the text is gone.
Also free.
JSON formatter & validator
Paste JSON to format it with two or four spaces, sort keys, minify for transport, and get a clear error with line and column when it doesn’t parse.
header · payload · expiryJWT decoder
Paste a JSON Web Token to see its header and payload decoded, the algorithm, and whether it’s expired or not yet valid — all in your browser.
javascript flavourRegex tester
Type a pattern and flags, paste some text, and see every match highlighted with its capture groups as you type.
text · files · url-safeBase64 encoder / decoder
Encode text or a file to Base64, or decode Base64 back to text — with proper UTF-8 handling, an optional URL-safe alphabet, and a data-URL output for files.
v4 · v7 · bulkUUID generator
Generate random v4 UUIDs or time-ordered v7 UUIDs, in bulk, uppercase or lowercase, with or without hyphens.
unix ↔ dateTimestamp converter
Paste a Unix timestamp (seconds or milliseconds) or a date, and see it in UTC, your local zone and ISO 8601, plus relative time.
Want this diff delivered when a page changes? That’s page change monitoring.
Page change monitoring watches any URL, yours or theirs, and sends a highlighted diff, an alert and a report on your schedule. $2 a page a month, your whole team included.