<Diff
Stack/>

Compare Two Files Online

Upload two files and see every difference side by side. Free file comparison that runs entirely in your browser — nothing ever reaches a server.

Upload two text files and review their differences

Choose or drop the original and revised files into the two editors. DiffStack reads each file locally and shows its name alongside the comparison; file contents are not uploaded to a server.

How to Compare Two Files

  1. 01.Load your files

    Choose an original and a modified plain-text file, or drop one into each editor.

  2. 02.Find differences

    Select Find Differences to compare both versions. Use Try an example to load the sample below and open its diff.

  3. 03.Review the result

    Switch between Split View and Unified View to review additions and removals alongside unchanged context.

Text comparison example

Original
# deployment notes v1
region: us-east-1
replicas: 2
backup schedule: nightly
alerting: email only
Modified
# deployment notes v2
region: us-east-1
replicas: 4
backup schedule: hourly
alerting: email + pagerduty
rollback window: 15 minutes

The deployment notes increase replicas from 2 to 4, change the backup schedule from nightly to hourly, add PagerDuty alerts, and introduce a rollback window.

Text Diff Tips

Both files stay on your device

Upload here means the browser reads the file locally with the FileReader API — the bytes never leave your machine, so it is safe for contracts, configs, and internal docs.

Convert binary formats to text first

This tool diffs plain text. Export .docx or .pdf files to .txt or Markdown first; comparing raw binary produces meaningless output.

Check the encoding

If one file is UTF-8 and the other Latin-1, accented characters will register as differences. Re-save both files with the same encoding for a clean diff.

Before you compare

Use plain-text files such as .txt, source code, or configuration files. Export Word documents and PDFs to text first; this tool does not extract their contents.

Each side supports up to 250,000 characters or 5,000 lines. Each uploaded text file can be up to 256 KB. Compared contents stay in your browser. No account is required.

Working with another format? Try CSV Diff Tool or Code Compare Tool.

Frequently Asked Questions

Clear answers to your comparison queries.