Web toolsText comparison and cleanup
Text comparison and cleanup
Processed on your device
Compare two texts by line or character, optionally trim spaces and remove duplicate lines. Read UTF-8 TXT files and compare them in your browser.
Compare a draft announcement with its revision line by line to find added and removed lines.
Inputs, files and file names are processed in this browser and are not sent to servers or analytics. Site ads and visitor analytics may load separately.
Original text
Revised text
Comparison result
− Removed+ Added
Instructions and precautions
- Enter two texts or open UTF-8 TXT files. Compare by line or character. Color, underlining and strikethrough indicate differences. Copy and save provide the plain text of both inputs.
- Cleanup changes both inputs and has no undo. Duplicate removal keeps the first occurrence, including blank lines. Keep your originals first. CRLF and CR line endings are normalized to LF for comparison. This tool does not judge meaning, spelling or translation accuracy.
- Per input: 40,000 UTF-16 code units and TXT up to 200 KB. Up to 2,000 lines or 4,000 Unicode code points; the comparison table after common ends are removed is limited to 2,000,000 cells and 15 seconds. Split larger texts.
- With whitespace differences ignored, line comparison keeps line divisions and ignores whitespace within each line. Character comparison ignores all whitespace, including line breaks.
