Text / file comparison
Local processing · No uploads
Compare two text sources or local text files side by side, with line and inline changes.
Usage & limits
How to use
- Fill Original text and Changed text, or use Open file on each side to read local UTF-8 text.
- Click Find differences. Editing or choosing files does not automatically compare.
- Read added/deleted lines, inline highlights and counts. Navigate differences or switch between side-by-side and unified views.
Input and output examples
- Example input
Original text: hello world Changed text: hello Zero- Expected output
- hello world + hello Zero
Formats and limits
- Paste original and changed text or open one local UTF-8 text file per side (optional BOM), then choose Find differences. Code, JSON, Markdown and CSV are text inputs; images, PDF, Word, Excel and folders are excluded.
- Comparison is case- and whitespace-sensitive. CRLF/CR are normalized to LF, while final-newline differences remain visible. Unicode is not normalized and JSON is not reformatted. Replacements count as deleted and added lines. Line numbers, difference navigation and split/unified views are available.
- Each side: 1 MiB UTF-8 and 20,000 lines; combined input: 2 MiB; output: 8 MiB. Reads/comparisons stop after 5 seconds and can be cancelled. Long lines or extensive inline work fall back to line highlighting with a notice. Results are rendered in sections with folded content available.
Content is processed in this page, without uploads or site history. First load and on-demand assets need a network. Clear or leave to release tool content; browser-managed restoration is outside the tool’s control.
Browser agent usage
These are interactive browser tools, not HTTP computation APIs. Computation requires JavaScript; initial page and on-demand asset loading need a network.
- Input method
- Fill Original text and Changed text with two texts, or open UTF-8 text files on each side. PDF, Word, Excel, images and folders are unsupported.
- Reading results
- The Comparison results region shows added/deleted lines, inline highlights, line numbers and counts. It is not a JSON export or automatic merge interface. Long lines may receive line-level highlighting only.
Supported operations
- Find differences: explicitly compare current sources
- Swap sides or clear
- Switch side-by-side / unified view and navigate difference blocks
Locate inputs and buttons by their page labels. After an explicit action, wait for the status to finish before reading the current result. Fix failed input first; do not reuse old results after changing input or settings.
Common questions
Are my files uploaded?
No. Files and results stay in this browser page, without cloud history. Clear or leave to release content. Initial page and on-demand algorithm loading still require a network.
Why can’t I compare GBK or Word files?
Only strict UTF-8 text is supported; encoding is not guessed. Convert other text encodings first. Word, PDF, Excel and images require format-specific parsing and are excluded.
Why is inline highlighting sometimes limited?
If either paired line exceeds 4,096 Unicode code points or cumulative inline work exceeds 100,000, affected lines use whole-line highlighting with a notice. The full line-level comparison remains available.
Feedback and suggestions
Leave a problem or suggestion for this tool.
Tool inputs stay local. Only text you explicitly enter in feedback is sent to a separate service and may become public after review. Email stays private to the maintainer.
Account-free feedback is not enabled yet. You can still use GitHub Issues (a GitHub account is required).
GitHub Issues ↗Content reviewed: