Text Diff: compare texts, files and web pages
Pricing
from $1.60 / 1,000 comparison completeds
Text Diff: compare texts, files and web pages
Compares pairs of texts, text files or web pages line by line, then word by word or character by character. Returns counts, a similarity score, every change, a unified diff and a side by side HTML report.
Pricing
from $1.60 / 1,000 comparison completeds
Rating
0.0
(0)
Developer
Ed Rayyis
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
20 days ago
Last modified
Categories
Features
Share
Compare two versions of a text and see exactly what changed. Each side can be pasted text, a text file URL or a web page URL. Compare one pair or hundreds in one run.
What you get for each pair
- Whether the two are identical, and a similarity score from 0 to 1
- Lines added, removed, changed and unchanged
- Words (or characters) added, removed and unchanged
- A list of every change: its type (added, removed, changed), the old and new text, and the line number on each side
- A unified diff, the format
git diffandpatchuse, saved as a.difffile - A side by side HTML report with removed words struck through in red and added words in green. Long unchanged stretches fold into a line such as "9 unchanged lines". It follows the reader's light or dark setting.
How it compares
Lines are matched first. Changed lines are then compared word by word (the default), character by character, or left as whole lines. Word mode shows that "3 to 5 days" became "2 to 4 days" by marking only the four numbers, not the whole line.
Options:
- Ignore case
- Ignore whitespace: runs of spaces and tabs count as one space, and spaces at the ends of a line are ignored
- Ignore blank lines
- Web pages: compare the visible text (scripts, styles and markup removed, one line per block such as a paragraph or list item), or the HTML source
- Context lines around each change (default 3), and an option to show every line in the report
The unified diff always lists the lines as written. The ignore options apply to the counts, the change list and the HTML report.
Input
- Original and Modified: one pair, each side text or a URL
- More pairs: a JSON list such as
[{"label": "pricing page", "original": "https://...", "modified": "https://..."}] - Compare changed lines by: word, character or line
- Ignore case, ignore whitespace, ignore blank lines
- Web pages compare: visible text or HTML source
- Context lines, save HTML report, show all lines in the report
URLs must answer HTTP 200 and be 10 MB or smaller. Character mode takes up to 400,000 characters per pair.
Output
Dataset: one item per pair with label, ok, original, modified (the URL, or "original" and "modified" for pasted text), originalType and modifiedType (text, file, web page text or web page source), identical, similarity, the line and word counts, changeCount, changes (the first 500), unifiedDiff (the first 100,000 characters), diffUrl and reportUrl. The full diff and the report are in the key-value store.
A pair that cannot be compared gets ok: false and an error, such as a URL answering HTTP 404 or a pair entry that is not an object. The other pairs still run.
Pricing
Pay per event: one event per pair compared. A pair that fails is not charged. The run stops when it reaches the maximum charge you set.
Scope and conduct
The actor downloads each URL you list once per pair and stores nothing beyond the run's own storage.
Support
Questions and problems: the Issues tab on this page.