Text / file comparison

Local processing · No uploads

Compare two text sources or local text files side by side, with line and inline changes.

Line 1, column 1

Line 1, column 1

Inputs and results show source line numbers. Long input lines scroll horizontally; the cursor position is shown below each input.

UTF-8 text files only. CRLF and CR are compared as LF; case, other whitespace and final newlines remain significant. No JSON formatting or Unicode normalization.

Image, PDF, Word, Excel and folder comparison are excluded. Common binary signatures are rejected; detection is not exhaustive.

Per source: 1 MiB UTF-8, 20,000 logical lines. Combined: 2 MiB. Comparison and each read: 5 seconds, cancellable. Result: 8 MiB. At most 400 text rows and 200 KiB of source text are mounted at once; use section controls to inspect the full result.

Text and filenames stay in this page’s memory. Nothing is uploaded or saved by this tool. The site must load first; local processing does not promise first-visit offline access or absolute security.

Text comparison license

Enter content, then choose an action.

Usage & limits

How to use

  1. Fill Original text and Changed text, or use Open file on each side to read local UTF-8 text.
  2. Click Find differences. Editing or choosing files does not automatically compare.
  3. Read added/deleted lines, inline highlights and counts. Navigate differences or switch between side-by-side and unified views.

Input and output examples

Replace one line (labeled source sides; illustrative removed/added output)
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:

Search tools