LINE DIFF
Text Compare
Compare plain text and code files line by line.
Supports TXT, Markdown, logs, CSV, XML, YAML, code files, and other text-based formats.
Need structured JSON comparison? Use JSON Compare.
RESULT
Differences
Swipe left or right to compare lines →
| Status | Original | Modified |
|---|
The comparison result will appear here.
How to compare text
- Paste text into both editors, choose local text or code files, or select Try example.
- Optionally select Ignore whitespace or Ignore case, then choose Compare.
- Review the added, removed, and changed lines. Use Previous and Next to move between differences.
What the diff checker shows
Text Compare checks plain text line by line. Changed rows show the original and modified lines side by side, with edited words highlighted within each line when the line is short enough for detailed comparison. Ignore whitespace collapses repeated whitespace and ignores whitespace at the ends of lines when matching; Ignore case matches letters without case differences. The displayed text remains unchanged.
Copy Result and Download Diff export a plain text diff for review. The download is not a unified patch file.
When to use Text Compare
- Review wording changes between document drafts.
- Spot changes in configuration or code files line by line.
- Check what changed in copied text before publishing.
FAQ
Is my text uploaded?
No. Comparison content is processed in your browser and is not uploaded for comparison. This site may use Cloudflare Web Analytics for page visits and performance; see Privacy.
Does it highlight individual words?
Yes. Changed lines highlight word-level additions and removals. Very long lines fall back to whole-line display.
What are the input limits?
Text-based files can be up to 10 MB each, each input can contain up to 10 million characters, and each side can contain up to 10,000 lines.