# Text diff > How do these texts differ? See additions and removals, line by line or word by word. Compare two texts by line or word, ignore case and spacing, and copy a unified diff. See added and removed text privately in your browser. - Page: https://how.box/text-diff/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/text-diff/?mode={mode}&case={case}&space={space} - `mode` (lines or words): Compare lines or words. Example: `lines`. - `case` (boolean): Ignore letter case. Example: `false`. - `space` (boolean): Ignore spacing differences. Example: `false`. Example answer: https://how.box/text-diff/?mode=lines&case=0&space=0 The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `text_diff_compare`: Compare original and revised text (12000 characters each) by lines or whitespace-separated words. - MCP: POST https://how.box/mcp `tools/call` with `{"name":"text_diff_compare","arguments":{…}}`; input schema in https://how.box/agent-tools.json. ## How it works A text comparison finds material removed from the original and added to the revision. Line mode counts changed lines; word mode compares groups separated by whitespace. Replacing “red” with “blue” counts as one removal and one addition. Ignoring case treats “Hello” and “hello” as equal. Ignoring whitespace ignores leading and trailing spacing and repeated spacing within lines, or spacing around words. Line mode also treats different line-ending styles and a missing final line break as equal. A unified diff is a plain-text patch: minus marks removals and plus marks additions, with a header identifying the old and new line ranges (Git diff-format documentation). Copying includes all literal changes regardless of the display options, with line endings normalized to LF. Each text is limited to 12,000 characters. When many edits would take too long to match, the tool shows larger removed and added blocks and says “Diff simplified”. Counts may then be higher than the smallest possible edit. Text stays in this tab and is never saved in a link. ## FAQ **Does a simplified diff miss any changes?** No. It includes the changed material in larger blocks, but may count unchanged words or lines within those blocks as removed and added. **Why does the copied patch include more changes?** The patch always compares the literal texts so that it can reproduce the revision. Display options only affect the on-screen comparison. The patch includes all lines in one section and uses LF line endings. **Can I compare private text?** The comparison runs in your browser. Text is neither uploaded nor stored in a URL, and closing or reloading the tab clears your edits. **Can I ignore changes in capitalization?** Yes. Turn on the option to ignore letter case for the displayed comparison. The copied patch still includes literal changes. **Can I compare Word or PDF files directly?** No. Paste the text from each document. The comparison does not check fonts, images or page layout. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)