Text Compare (Diff Checker)
Compare two texts and highlight added, removed and changed words; split or unified view, ignore case/whitespace. Free and runs in your browser.
Paste two texts to see the differences
Both texts are compared right in your browser — never sent to the server, never stored.
Developer API
Call this exact tool from your code over JSON REST — same result as on the web, authenticated with an API key.
Endpoint
POST https://sieutool.net/api/v1/tools/text-diffAuth: send the X-API-Key header — create a free key in Account → API keys.
- Rate limit60 requests/min
- Daily quota1.000 requests/day
- PriceFree · up to 1 items/request
Request parameters
| Parameter | Type | Description |
|---|---|---|
left * | string | Văn bản A (gốc) (mỗi dòng 1 mục) |
right * | string | Văn bản B (mới) (mỗi dòng 1 mục) |
ignore_case | boolean | Bỏ qua hoa thường(default false) |
ignore_space | boolean | Bỏ qua khoảng trắng(default false) |
* required. Send JSON in the body, Content-Type: application/json.
Code examples
curl -X POST 'https://sieutool.net/api/v1/tools/text-diff' \
-H 'Content-Type: application/json' \
-H "X-API-Key: $NXP_API_KEY" \
-d '{"left":"Hợp đồng dịch vụ\nGiá: 1.000.000đ\nThời hạn 6 tháng","right":"Hợp đồng dịch vụ\nGiá: 1.200.000đ\nThời hạn 6 tháng\nGia hạn tự động","ignore_space":true}'Sample response
{
"ok": true,
"tool": "text-diff",
"version": "1.0.0",
"data": {
"identical": false,
"stats": {
"added": 2,
"removed": 1,
"changed": 1,
"same": 2
},
"rows": [
{
"type": "same",
"a": 1,
"b": 1,
"left": "Hợp đồng dịch vụ",
"right": "Hợp đồng dịch vụ"
},
{
"type": "mod",
"a": 2,
"b": 2,
"left": "Giá: 1.000.000đ",
"right": "Giá: 1.200.000đ",
"segs": {
"left": [
{
"t": "=",
"s": "Giá: 1."
},
{
"t": "-",
"s": "000"
},
{
"t": "=",
"s": ".000đ"
}
],
"right": [
{
"t": "=",
"s": "Giá: 1."
},
{
"t": "+",
"s": "200"
},
{
"t": "=",
"s": ".000đ"
}
]
}
},
{
"type": "same",
"a": 3,
"b": 3,
"left": "Thời hạn 6 tháng",
"right": "Thời hạn 6 tháng"
},
{
"type": "add",
"b": 4,
"right": "Gia hạn tự động"
}
],
"unified": " Hợp đồng dịch vụ\n- Giá: 1.000.000đ\n+ Giá: 1.200.000đ\n Thời hạn 6 tháng\n+ Gia hạn tự động"
}
}Try it (live call)
Main error codes
| HTTP | code | Meaning |
|---|---|---|
| 400 | BAD_INPUT / NO_INPUT / TOO_MANY_UNITS / BAD_NUMBER… | Invalid input — the message names the field |
| 401 | MISSING_API_KEY / INVALID_API_KEY / REVOKED_API_KEY | Missing, invalid or revoked API key |
| 429 | RATE_LIMITED / IP_RATE_LIMITED | Per-minute rate limit exceeded — wait for Retry-After |
| 429 | DAILY_QUOTA_EXCEEDED | Daily quota used up — the upgrade field suggests a paid plan |
| 429 | CLUSTER_QUOTA_EXCEEDED | Linked accounts (same device/network) used up the daily quota — the free quota is shared across the group, not multiplied per account |
| 503 | SERVER_BUSY / TOOL_BUSY / API_DISABLED | Server under heavy load or API paused — wait for Retry-After |
Every response carries X-RateLimit-Remaining / X-RateLimit-Remaining-Day; 429/503 errors include Retry-After (seconds).
How to use
Online text compare: paste the old and new versions and instantly see which lines were added or removed and which words changed within a line — handy for contracts, articles, configs or code. Comparison runs in your browser; your text goes nowhere.
- Paste the original text into box A and the new text into box B (or click Try an example).
- Results appear below: removed lines in red, added lines in green, changed words emphasized. Click Compare or press Ctrl+Enter to re-run.
- Switch between split and unified view, toggle "Ignore case"/"Ignore whitespace", and Copy or Download .diff to keep the result.
Frequently asked questions
- The tool shows textual differences only; it does not assess the legal meaning of a contract.
Related tools
Character & Word Counter
Count characters, words, sentences, paragraphs and lines as you type; see limits for SEO title, meta description, SMS and tweets. Free, in-browser, with API.
3 runs
Remove Vietnamese Accents & Change Case
Remove Vietnamese diacritics (đ→d), convert uppercase to lowercase, Title Case or Sentence case, keeping line breaks. Free, in-browser, with API.
3 runs
Vietnamese Amount in Words
Spell out amounts in Vietnamese words for invoices, receipts and contracts (e.g. 1.250.000 → Một triệu hai trăm năm mươi nghìn đồng). Free API.
1 runs



