文字差異工具

Compare two plain text blocks line by line, then review added lines, removed lines, and unchanged lines in one readable list.

Use this page when structure does not matter and you need a fast line diff. For JSON-aware comparison, move to the dedicated JSON diff tool

其他語言 日本語 | English | 繁體中文

Why use this text diff?

Compare two text blocks

Paste the left and right text, choose whether trailing whitespace should count, then compare. The share URL stores settings only, not your text.

Left text

Example: current config, source copy, or original output.

Right text

Example: new config, edited copy, or generated output.

差異總結

Added lines
Removed lines
Unchanged lines
Left line count
Right line count

Use the settings URL only for options. Large pasted text should not go into the URL.

Choose text diff when structure does not matter

This page compares plain text line by line. It does not parse JSON, YAML, or code syntax. If your question is about structure, object keys, or changed data paths, use JSON 差異 instead.

Newline handling

Line endings are normalized before comparison. CRLF and CR are both converted to LF, so Windows versus Unix newline styles do not count as changes by themselves.

Settings-only share URL

The share button copies only the current settings, such as whether trailing whitespace is ignored. Large or sensitive pasted text should stay out of the URL, browser history, and shared links.

常見問題

How is this different from JSON diff?

Text diff compares plain text line by line. JSON diff understands JSON structure, ignores object key order, and reports changed paths instead of plain lines.

Do different newline styles count as a difference?

No. This page normalizes CRLF and CR line endings to LF before comparing. That removes noise from Windows versus Unix newline styles.

What does ignore trailing whitespace do?

It trims spaces and tabs at the end of each line before comparison. Internal spaces still count as differences.

Why does the share URL not include my pasted text?

This page copies a settings-only URL so long or sensitive text does not get written into the address bar, browser history, or shared links.

評論(可選)

為了減少負載,僅在需要時才取得評論。