Compare Two Texts Online — Line by Line
Paste two texts or select TXT files to compare changes. Highlight added and removed lines, ignore whitespace differences, and copy the result privately.
1. Paste or load text
Paste text to compare.
2. Changes
No comparison yet.
Green = added, red = removed, grey = unchanged. Line-by-line comparisons support up to 500 lines per side and 100 KB per text.
How to compare two texts
- Paste the original and revised text into the two fields, or load TXT files.
- Select Compare texts. Turn on Ignore whitespace differences if spacing should not count as a change.
- Review added and removed lines, then copy or download the unified diff when needed.
Frequently asked questions
Which files can I compare?
You can paste text or load TXT files (up to 1 MB per file). The comparison supports up to 500 lines per side and 100 KB of text per side. DOCX and PDF files cannot be compared directly.
Will my text be sent to a server?
No. Text comparison is performed locally in your browser.
Related tools
Visit Text Cleanup & Counts or the PDF Tools to work with source documents.
Your text stays in this browser. No accounts, server requests, or document uploads. The comparison is calculated locally.