Text Diff Engine with block moves API
Compare texts with precision, highlighting added, deleted and moved blocks between versions. Easily integrates into your workflow via our API.
Get your API tokens
TRIAL
FREE
first 5 tokens
Basic
9€
50 tokens
PRO
35€
500 tokens
Your private API key will be sent to your email after payment.
(1 token = 1 request, with a 30s timeout). Contact us if you need a custom plan.
Endpoint
or use our Python library
Response format
HTML Response Structure
<span class='deleted'>...</span>
Marks removed text. - only in old_diff
<span class='added'>...</span>
Marks newly added text. - only in new_diff
<span class='move-from-block' id='move-from-X'>...</span>
Marks text moved from its original position. - only in old_diff
<span class='move-to-block' id='move-to-X'>...</span>
Marks where the moved text now appears. - only in new_diff
<span data-identifier='X'>...</span>
Marks unchanged segments; data-identifier enables scroll sync.
The HTML structure provides a clear, interactive way to visualize text changes with styling classes. While we offer only an API, you can integrate it into your own frontend or an existing application.
JSON Response Structure
{ "type": "DELETED", "text": "..." }
Marks removed text. - only in old_diff
{ "type": "ADDED", "text": "..." }
Marks newly added text. - only in new_diff
{ "type": "MOVE-FROM", "move_id": X, "blocks": [...] }
Marks text moved from its original position. - only in old_diff
{ "type": "MOVE-TO", "move_id": X, "blocks": [...] }
Marks where the moved text now appears. - only in new_diff
{ "type": "UNCHANGED", "text": "...", "identifier": X}
Marks unchanged segments; identifier enables scroll sync.
The JSON structure provides a flexible, structured way to represent text changes, enabling easy integration into various applications. While we offer only an API, you can process and display the data in any format that suits your needs.