Compare Two Files

Compare two UTF-8 text files and download a unified line diff.

Files stay on your device. Maximum 20 files and 2 MB combined; comparison accepts two files with up to 100,000 characters combined.

Choose your files to begin.

How to use Compare Two Files

  1. Choose supported local TXT files.
  2. Choose the available options and select Process files.
  3. Review the dimensions and output, then download the result if available.

What to expect

UTF-8 plain text only. Merge adds a newline between files; split normalizes line endings to LF. File order is shown before processing. Keep your originals.

Common questions

Does Compare Two Files send my input to a server?

No. Your browser reads and processes the files locally. Nothing is uploaded to a processing service.

What if the result is empty or an error appears?

Check the file format and selected options. Unsupported files and out-of-range settings display an explanation. Keep your original files.

Related tools

Read practical guides

Analytics preferences

Optional Google Analytics helps us understand page usage. Tool content is never included. Analytics stays off until you enable it.