Text Diff
Compare two texts line by line.
Original
0 linesCompared
0 linesComparison result
No comparison result
Enter text in both inputs and press compare.
About This Tool
The Text Diff tool compares two texts line by line, highlighting added content, deleted content, and unchanged content. Use it to quickly see differences between document revisions, code changes, or variations in configuration files and data. You can optionally ignore whitespace or case differences, making it easy to focus on meaningful changes while excluding trivial ones.
How to Use
Enter original and comparison text
Paste the two texts you want to compare into the left (original) and right (comparison) panels.
Choose comparison options
Optionally enable ignore whitespace or ignore case, then click the Compare button.
Review results and copy
Inspect added, deleted, and unchanged lines in the diff output below, then copy the content you need.
Key Features
Line-by-line comparison
Compares two texts line by line so you can easily spot where and what changed.
Added / Deleted / Unchanged
Added lines, deleted lines, and unchanged lines are displayed in distinct styles so you can grasp the differences at a glance.
Ignore whitespace & case
Exclude whitespace differences or English case differences from the comparison to focus on actual content changes.
Navigate between changes
When there are multiple changes, use the Previous / Next buttons to jump quickly to each changed location.
Flexible copy options
Copy only the changed content, the original text, or the comparison text independently.
Browser-side processing
All text you enter is processed inside your browser and is never sent to a server.
Use Cases
Reviewing document revisions
Compare previous and current versions of reports, contracts, notices, and other documents after making edits.
Comparing code changes
Inspect before-and-after versions of functions, config files, scripts, and other code to see which lines were added or removed.
Proofreading translations
Compare earlier and revised versions of source or target translations to quickly spot changed sentences and phrasing.
Comparing settings and data
Useful for checking differences in text-based data such as JSON, CSV, environment config files, and logs.
Comparing AI-generated output
Compare results from different prompts or models to see differences in wording or structure.
Frequently Asked Questions
What criteria are used for comparison?
The two texts are compared line by line. Added and deleted lines are highlighted separately, and unchanged lines are also shown.
Can I ignore whitespace differences?
Yes. Enable the Ignore Whitespace option to disregard differences in the number or position of whitespace characters and compare only the text content.
Can I ignore English case differences?
Yes. Enable the Ignore Case option to treat uppercase and lowercase letters as identical.
Can I copy only the changed parts?
Yes. Use the Copy Changes button to copy only the modified content from the diff results. You can also copy the entire original or comparison text separately.
Can I quickly jump between multiple changes?
Yes. Use the Previous / Next navigation buttons above the diff results to step through each change in order.
Can I compare regular sentences, not just code?
Yes. The tool works with any text format — general documents, emails, translations, lists, configuration files, and more.
Is my text sent to a server?
No. All processing happens inside your browser, and your text is never transmitted to a server.