Text Diff Checker avatar

Text Diff Checker

Pricing

$3.00/month + usage

Go to Apify Store
Text Diff Checker

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

Web Harvester

Maintained by Community

Actor stats

0

Bookmarked

8

Total users

0

Monthly active users

4 months ago

Last modified

Share

๐Ÿ“ Compare two texts and highlight differences. Shows additions, deletions, and changes with multiple output formats.

Apify Actor License: MIT

๐ŸŽฏ 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 CaseDescription
Code ReviewCompare code versions
Document VersioningTrack document changes
Content AuditFind text modifications
Plagiarism CheckCompare similarity
Translation QACompare translations
Data ValidationVerify 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

ParameterTypeDefaultDescription
text1string-Original/old text
text2string-Modified/new text
outputFormatstringunifiedunified, side_by_side, html, json
contextLinesinteger3Lines around changes
ignoreCasebooleanfalseIgnore uppercase/lowercase
ignoreWhitespacebooleanfalseIgnore 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

FormatBest ForOutput
unifiedDevelopersGit-style diff text
side_by_sideVisual comparisonArray of line pairs
htmlReportsStyled HTML page
jsonAutomationWord-level diff array

๐Ÿ’ฐ Cost Estimation

Text SizeApprox. TimeCompute 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