./prontouso.com
VĂN BẢN & VIẾT LÁCH

So Sánh Văn Bản

So sánh hai đoạn văn bản theo từng dòng hoặc từng ký tự, làm nổi bật phần thêm, xóa hoặc sửa đổi trực quan giống như Git Diff.

Trạng thái công cụChạy trên trình duyệt của bạn
Xem trước
Compare by
Hoặc kéo & thả tệp văn bảnhoặc chọn tệp từ máy
.txt, .md, .csv, .json, .log · tối đa 2.0 MB. Xử lý trực tiếp trên trình duyệt, không bao giờ tải lên máy chủ.
Hoặc kéo & thả tệp văn bảnhoặc chọn tệp từ máy
.txt, .md, .csv, .json, .log · tối đa 2.0 MB. Xử lý trực tiếp trên trình duyệt, không bao giờ tải lên máy chủ.

Điểm khác biệt

Added
0
Removed
0
Changed
0
Total changes
0
 

The two texts are identical.

Cách thức hoạt động

  1. Nhập dữ liệu của bạn

    Điền các giá trị cần thiết, dán văn bản hoặc tải lên tệp bạn muốn xử lý.

  2. Xem kết quả tức thì

    Hầu hết các công cụ cập nhật theo thời gian thực khi bạn nhập liệu; một số công cụ sử dụng một nút hành động duy nhất.

  3. Sử dụng kết quả

    Sao chép, tải xuống hoặc chia sẻ kết quả được tạo — bạn luôn có toàn quyền kiểm soát dữ liệu của mình.

Quyền riêng tư & xử lý dữ liệuChạy cục bộ 100% trên trình duyệt của bạn. Công cụ này không tải dữ liệu của bạn lên máy chủ.

So Sánh Văn Bản là gì?

Paste an original version and a revised version to review what changed before you accept edits, publish copy, or update a snippet.

TÌM HIỂU CÁCH HOẠT ĐỘNG CỦA CÔNG CỤ

How to compare two texts

Choose the comparison mode

Line mode is best for code, configuration files, CSV rows, lists, and drafts where each line carries its own meaning. It makes added, removed, and replaced lines easy to scan.

Character mode is better for a sentence, headline, or short paragraph where one word, number, or punctuation mark may have changed inside the same line.

Read the highlighted result

Added content appears in green, removed content appears in red with a strike-through, and unchanged content stays plain. A replacement in the same neighborhood is counted as "changed" so the summary reads closer to how people describe edits.

Good review habits

  • Put the older version on the left and the newer version on the right.
  • Use Line mode first for long material, then Character mode on small sections that need closer inspection.
  • Check whitespace-only changes if formatting matters, such as in Markdown, YAML, or code.
  • Copy the diff when you need a plain-text change note for a ticket or review comment.

Limits to know about

  • Very large inputs are skipped with a message because a full comparison grows quickly with the size of both texts.
  • Character mode is intentionally for small text. For long documents, compare line by line or split the material into sections.
  • The tool compares exact text. It does not ignore case, trim spaces, or normalize punctuation before comparing.

Content handling

The two versions remain as working text on the page while you compare them. Clear each side before moving to an unrelated review on a shared device.

Các Câu Hỏi Thường Gặp (FAQ)

What's the difference between line mode and character mode?

Line mode treats each line as one unit, ideal for code or config files. Character mode compares individual characters, better for spotting a small edit inside a sentence or short paragraph.

Can it ignore whitespace or capitalization?

No. The comparison is exact, so spaces, line breaks, capitalization, and punctuation all count. Clean or normalize the text first if you want to ignore those differences.

Why does it say the text is too large to compare?

The comparison cost grows with the size of both texts multiplied together. Try Line mode, compare a smaller section, or split the material into separate chunks.

Why is a replacement counted as changed?

When removed and added content appear next to each other, the summary pairs them as a change. That usually matches an edited line or word better than reporting only separate additions and removals.

Can I compare two files instead of pasting text?

Yes. Drop a text file into the original or new text box. Supported inputs include .txt, .md, .csv, .json, and .log files.

Công Cụ Liên Quan