Text Comparison
Compare text online to instantly find differences between strings. This free text comparison tool is fast, accurate, and perfect for coding, data analysis, and content review.
Import from URL Load plain-text pages directly when the site allows cross-origin access. If blocked, use Open File or paste instead.
Diff Results
Original (removed)
Modified (added)
Frequently Asked Questions About Online Calculators
Which diff granularity should I pick?
Lines for source code, logs and anything where a whole row appeared or disappeared; words when a sentence was rephrased; characters when you are checking a single letter, a stray space or one edited number.
Can it tell me how much changed, not just where?
Yes. The summary counts the changes and splits them into additions and deletions, which is what separates a touched comma from a rewritten passage.
Will my original file be changed?
The result is downloaded as a separate file. Keep your original until you have checked the Line, word and character diff.
What should I check before using the result?
Open the Line, word and character diff in the application that consumes it and spot-check the parts that matter to you; the original file stays untouched if you need to re-run with different options.
How do I avoid flagging lines that only changed due to wrapping or spacing?
Open the options to ignore whitespace. This stops the tool from marking every re-wrapped paragraph as a massive deletion and addition. Keep whitespace checking on when you are reviewing source code or exact output strings.
What settings should I use for a copy edit versus a code merge?
For code merges, use a line-level diff, leave case sensitivity on, and ignore whitespace only if the formatter changed tab and space alignment. For a copy edit, switch to word-level to see which phrases were rephrased, and consider turning off case sensitivity if you are not checking exact URL or variable names.
Text Comparison
Spot changes between two drafts without a full IDE. This free, browser-based diff checker handles the fine-grained lookups you need: compare whole lines for code and logs, compare words when a sentence is rephrased, or compare characters to hunt down a stray space or a single typed digit. It gives you an instant count of additions and deletions so you can tell at a glance whether a revision touched one comma or rewrote an entire passage.
How to Compare Text in Your Browser
The tool works entirely in your browser; your files and pasted text do not leave your device.
- Load the original version — Paste the first draft into the left panel or open a TXT, LOG, source code, or plain-text file.
- Load the modified version — Paste the second draft into the right panel or upload the updated file.
- Set the granularity — Choose between a line-level, word-level, or character-level diff. If you are ignoring re-wrapped text, switch to word or character mode to avoid flagging every line as changed.
- Adjust toggle settings — Use the options shown on this page to ignore whitespace when comparing reformatted drafts, or turn off case sensitivity when checking copy edits. Keep these features active for identifiers, URLs, and exact string matching.
- Compare and review — Run the diff and check the color-coded additions and deletions. Use the summary counts to verify you found every change.
- Export for the next step — Copy the diff output or download the result into the exact application, ticket, or log that needs it, and confirm it is usable before closing the tool.
Choose the Right Diff Level
The choice of granularity changes the results:
- Line mode works best for source code, API logs, and configurations where a complete row appeared or disappeared.
- Word mode highlights rephrased sentences and shifted phrases without marking surrounding formatting as changed.
- Character mode exposes typos, missing punctuation, and a single edited number.
Practical Use Cases and Workflow Fit
Teams use this tool when a heavy desktop suite or IDE is not the primary workflow. You can use it to:
- Audit API and server logs to spot the new error code or the missing request ID between two dumps.
- Track copywriting revisions across drafts to ensure the final marketing copy keeps every required legal disclaimer.
- Verify structural data formatting when a JSON or XML file was re-saved by a tool that shifted indentation or reordered keys.
Because the process runs locally, remote collaborators can share a file and each verify the diff in their own environment.
Privacy and Data Handling
The comparison processes your data in your browser. When the format is supported, your files and pasted text never reach a remote server. This is the safe way to diff sensitive materials like unreleased source code, internal customer records, or contracts with redaction markers.
Related toolxml diff.
Related toolfile diff checker.
Related toollist diff checker.