Text Compare
Compare two blocks of text and see line-by-line differences highlighted. Find what changed between two documents, emails or lists, right in your browser.
Original
Stays in your browserChanged
Stays in your browserShortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to Regex Tester.
Online Text Compare & Diff Checker
Spot differences between two versions of any plain text — log output from before and after a bug fix, two drafts of a document, or two revisions of a code snippet — with a line-by-line diff view showing exactly what was added or removed, no JSON structure required. Comparing code? Use the Code Diff Checker. Comparing JSON? Use JSON Compare, which ignores key order and spacing. It is useful for reviewing config changes, documentation revisions, and generated output where a line-by-line text diff is clearer than manual scanning.
How to compare two blocks of text online
Paste the original text into the left box and the changed version into the right box, then click Compare. The tool runs a line-by-line diff and shows exactly which lines were added, removed, or left unchanged — no special format required, unlike a JSON- or code-aware diff tool.
Reading the diff result
Lines marked with a + were added in the changed version; lines marked with a - were present in the original but removed. A running total of additions and removals appears above the diff view, and unchanged lines are shown for context so you can see where in the document a change occurred.
Common use cases
- Comparing log output captured before and after a bug fix to confirm the behavior actually changed
- Reviewing two drafts of documentation or an email before sending
- Diffing plain-text config files that aren't valid JSON or XML
- Spotting exactly what changed between two pasted code snippets without opening a full diff tool
Everything runs locally in your browser — neither block of text is ever uploaded to a server.
Worked example
Original Hello world
Goodbye against changed Hello world
See you later shows the first line unchanged and the second as a removed/added pair. Changing only the indentation of a line shows as a removed/added pair unless you set Whitespace to ignore it, in which case the line counts as unchanged. Inside a changed pair, the words that differ are marked more strongly (or single characters, if you pick that).
Common mistakes and edge cases
- With Whitespace set to compare exactly, a pure reindent or a trailing space shows as a full change. Switch the option to ignore it.
- Ignoring blank lines leaves them out of the result completely, so line numbers still match your text but blank lines do not appear.
- Merge view: switch it on, click Compare, then choose Use left, Use right or Use both for each change. A change you have not chosen yet uses the left side. Blank lines are never ignored while merging, so the merged text keeps all of them. Where two lines differ only in spaces or capitals and you chose to ignore that, the merged text keeps the left version.