Text Diff Checker
Pricing
$3.00/month + usage
Go to Apify Store
Text Diff Checker
Compare two texts and highlight differences. Shows additions, deletions, and changes. Multiple output formats: unified, side-by-side, HTML.
Pricing
$3.00/month + usage
Rating
0.0
(0)
Developer

Web Harvester
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
📝 Compare two texts and highlight differences. Shows additions, deletions, and changes with multiple output formats.
🎯 What This Actor Does
Compare texts and find differences:
- Unified Diff - Git-style diff output
- Side by Side - Compare lines directly
- HTML Output - Visual diff with colors
- Statistics - Additions, deletions, similarity %
- Options - Ignore case, whitespace
🚀 Use Cases
| Use Case | Description |
|---|---|
| Code Review | Compare code versions |
| Document Versioning | Track document changes |
| Content Audit | Find text modifications |
| Plagiarism Check | Compare similarity |
| Translation QA | Compare translations |
| Data Validation | Verify data changes |
📥 Input Examples
Basic Comparison
{"text1": "The quick brown fox jumps over the lazy dog.","text2": "The quick brown cat jumps over the lazy dog!","outputFormat": "unified"}
HTML Output
{"text1": "Hello World\nThis is line 2","text2": "Hello Universe\nThis is line 2\nNew line 3","outputFormat": "html"}
Ignore Case/Whitespace
{"text1": "Hello World","text2": "hello world","ignoreCase": true,"ignoreWhitespace": true}
⚙️ Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
text1 | string | - | Original/old text |
text2 | string | - | Modified/new text |
outputFormat | string | unified | unified, side_by_side, html, json |
contextLines | integer | 3 | Lines around changes |
ignoreCase | boolean | false | Ignore uppercase/lowercase |
ignoreWhitespace | boolean | false | Ignore space differences |
📤 Output
{"format": "unified","additions": 1,"deletions": 1,"changes": 0,"similarity": 85.71,"totalLines1": 3,"totalLines2": 4,"diff": "--- original\n+++ modified\n@@ -1,3 +1,4 @@..."}
📊 Output Formats
| Format | Best For | Output |
|---|---|---|
unified | Developers | Git-style diff text |
side_by_side | Visual comparison | Array of line pairs |
html | Reports | Styled HTML page |
json | Automation | Word-level diff array |
💰 Cost Estimation
| Text Size | Approx. Time | Compute Units |
|---|---|---|
| 1 KB | ~1 second | ~0.001 |
| 100 KB | ~2 seconds | ~0.003 |
| 1 MB | ~5 seconds | ~0.01 |
🔧 Technical Details
- Language: Python 3.12
- Library: difflib (built-in)
- Memory: 128MB-256MB
- Algorithm: SequenceMatcher (Ratcliff/Obershelp)
📄 License
MIT License - see LICENSE for details.
🏪 Apify Store Listing
Keywords: text diff, compare texts, diff checker, text comparison, unified diff, side by side, similarity, document compare