# Text Compare > Use Text Compare as a text diff checker to compare two versions line by line. Trim line edges, ignore case, swap sides, and inspect changes. **Text Compare** highlights differences between two pasted versions of text as added, deleted, and unchanged lines. Use the text diff checker to review configuration edits, copy revisions, or short code samples, with controls for line-edge whitespace and letter case. ## Overview & Metadata - **Canonical URL:** https://million.tools/text-compare/ - **Markdown Copy (.md.txt):** https://million.tools/text-compare.md.txt - **Plain Text Copy (.txt):** https://million.tools/text-compare.txt - **API Endpoint:** https://million.tools/api/v1/run/text-compare (POST, Keyless, 60 req/min) - **SEO Title:** Text Compare Online | Line Diff Checker for Two Texts - **Alternative Names:** Text Diff Checker, Compare Text Versions, Text comparison tool, Line difference viewer, Text version comparer - **Category:** [Others](https://million.tools/others/) - **Tags:** [#Others](https://million.tools/tag/others/) - **Application Category:** `UtilitiesApplication` - **Platform:** Web (All modern desktop and mobile browsers, requires JavaScript) - **Price:** Free ($0.00 USD, no registration or sign-up required) - **Live Calculation:** Supported (`Auto / Live` toggle enabled by default) - **Usage Statistics:** 11 uses · 36 views - **Published:** 2026-11-26 - **Last Updated:** 2026-11-26 - **Author:** Egor Volchenko (Developer & Author) ## Key Features - Compare two pasted text versions - Display a combined line diff - Count additions, deletions, and unchanged lines - Optionally trim line edges - Optionally ignore letter case - Swap sides and clear text ## Parameters & Interface Controls ### Input Parameters & Options - `input_text`: Original Text / JSON. - `diff_target`: Modified Text / JSON. - `ignore_whitespace`: Boolean. Ignore whitespace. - `case_sensitive`: Boolean. Case sensitive. ### Output Fields & Metrics - `result`: Result. - **Controls:** `Compare Differences`, `Swap Sides`, `Clear`, `Fill test data`, `Auto / Live` ## Interactive Example (Test Vector) **Settings:** - Modified Text / JSON: `# Deployment Config (v1.5) APP_ENV=production API_HOST=api.million.tools CACHE_TTL=300 RATE_LIMIT=100 FEATURE_EXPORT=enabled FEATURE_WEBHOOKS=enabled LOG_LEVEL=warn` - Case sensitive: `Enabled` **Original Text / JSON:** ```text # Deployment Config (v1.4) APP_ENV=staging API_HOST=api-staging.million.tools CACHE_TTL=300 DEBUG_MODE=true RATE_LIMIT=100 FEATURE_EXPORT=enabled ``` **Result:** ```text { "equal": false, "additions": 5, "deletions": 4, "unchanged": 3, "diff": [ { "type": "del", "text": "# Deployment Config (v1.4)" }, { "type": "del", "text": "APP_ENV=staging" }, { "type": "del", "text": "API_HOST=api-staging.million.tools" }, { "type": "add", "text": "# Deployment Config (v1.5)" }, { "type": "add", "text": "APP_ENV=production" }, { "type": "add", "text": "API_HOST=api.million.tools" }, { "type": "same", "text": "CACHE_TTL=300" }, { "type": "del", "text": "DEBUG_MODE=true" }, { "type": "same", "text": "RATE_LIMIT=100" }, { "type": "same", "text": "FEATURE_EXPORT=enabled" }, { "type": "add", "text": "FEATURE_WEBHOOKS=enabled" }, { "type": "add", "text": "LOG_LEVEL=warn" } ] } ``` ## How to use Text Compare Start with a known test sample so you can check the result against the expected behavior. ### Review changes between two texts 1. **Paste the two versions:** Enter the earlier version in Original Text / JSON and the revised version in Modified Text / JSON. Keep line breaks where you want separate comparisons. 2. **Choose the comparison rules:** Turn on Ignore whitespace to trim line edges. Keep Case sensitive on to treat letter-case changes as differences, or turn it off to compare lowercase versions. 3. **Read the changes:** Visual Diff Output updates while you type. Click Compare Differences when needed, then review green additions, red deletions, and the unchanged count. 4. **Reverse or clear the inputs:** Use Swap Sides to reverse which version counts as original. Use Clear where shown or the field clear controls to remove text. Original text with lines `alpha` and `beta`, compared with `alpha` and `gamma`, produces one unchanged line, one deletion, and one addition. ### Read a line diff rather than a word edit The output is one combined diff with plus and minus markers. It compares complete lines and counts a replacement as a deletion plus an addition. It does not highlight the exact changed word or character within a line, even if the two input fields sit side by side. ### Know what the normalization options remove Ignore whitespace trims only the beginning and end of each line; internal spaces and empty lines remain part of the comparison. Turning Case sensitive off lowercases the compared text and the displayed diff. Keep the input fields as your reference when original capitalization matters. ## Frequently asked questions ### Does this compare words or individual characters? It compares lines. A changed word can make the whole old line appear as a deletion and the revised line as an addition. There is no word-level or character-level mode selector. ### Does Ignore whitespace remove every space? No. It trims leading and trailing whitespace on each line. Internal spaces, line breaks, and blank-line positions still affect the result. ### What happens when Case sensitive is off? Both comparison sides are lowercased before the diff is computed. The displayed diff uses that lowercase text, while the original input fields retain their original capitalization. ### What do additions and deletions count? The counters count added and removed lines in the displayed result. They do not count characters, words, or semantic edits. Swapping sides reverses the direction of the comparison. ### Can I copy, download, or merge the result? No Copy Diff, patch-download, merge, or file-upload action is present. The form accepts pasted text and provides Compare Differences, Swap Sides, and Clear controls. ### Does comparing send my text to a server? The visual diff is computed in the browser, but the shared live handler and Compare Differences button also submit form data to the API. Use sanitized text for internal documents or code samples. ## About the Author **Egor Volchenko** — *Developer & Author* Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience. - **Links:** [x.com](https://x.com/egorleet) · [github.com](https://github.com/egorleet) · [t.me](https://t.me/egorleet) · [instagram.com](https://www.instagram.com/egorleet) · [facebook.com](https://www.facebook.com/egorleet/) · [egorleet.blog](https://egorleet.blog/) · [mastodon.social](https://mastodon.social/@egorleet) · [twitch.tv](https://www.twitch.tv/egorvolchenko) · [stackoverflow.com](https://stackoverflow.com/users/31679135/egor-volchenko) · [reddit.com](https://www.reddit.com/user/Vegetable_Window9185/) · [youtube.com](https://youtube.com/@egor-volchenko)