TWO FILES. ONE CLEAR COMPARISON.

Compare text files online.

Compare text files online to find changes in notes, code and plain text.
Choose two files; their contents stay on your device.

YOUR COMPARISON

Files: UTF-8 plain text · up to 400 KB and 100,000 characters each

0 characters0 lines
0 characters0 lines
◇ Compared in your browser. Your text stays here.Ctrl / ⌘ + Enter to compare

Up to 100,000 characters per side. UTF-8 plain text only. Line endings are treated as equivalent.

How to compare text files

To compare two text files, choose an original and an updated version of the same content. You can edit the imported text before comparing; your source files remain unchanged.

  1. Select Choose file above Original text and open the first version.
  2. Choose the updated file above Changed text. Check that both editors show the intended text.
  3. Select word, character or line mode, then choose Compare text.
  4. Review the changes and download a text report if you want to keep a copy.

Try real text file examples

These Markdown files change a date and a budget, then add a status line. Line mode makes the edited and added lines easy to review.

1 change group · 43 characters added · 25 removed · line mode

# Launch notes
[−] Date: Monday
Budget: 100
[+] Date: Tuesday
Budget: 120
Status: approved
View the original and updated text

Original

# Launch notes
Date: Monday
Budget: 100

Updated

# Launch notes
Date: Tuesday
Budget: 120
Status: approved

All examples use fictional text. Open the two downloaded files in the file comparison tool to reproduce this result with line mode and both ignore options off.

Select Try file example above to load the Markdown notes in line mode. Or download either sample pair and choose those files yourself. The accompanying report shows the actual output.

Which files can I compare?

Use UTF-8 plain text files such as .txt, .md, .csv, .json, logs and source files. Files must be no larger than 400 KB and contain no more than 100,000 characters each. CSV and JSON are compared as text, without matching rows, columns or object keys.

Choose a mode for the files you have

  • Markdown and notes: compare text files by word to review sentences, headings and links.
  • Logs and lists: use line mode to find added or removed lines. Records are compared in their existing order.
  • JSON and configuration: use character mode for a changed value. Reordered keys can produce text differences even when the values are unchanged.
  • CSV exports: align records first. For values in spreadsheet cells, follow the Excel text comparison steps.

Word documents, PDFs, spreadsheets, images and other binary files cannot be imported. For documents, copy their text first and check the limitations. For a cell-by-cell check, use our Excel comparison guide.

Review and save the file differences

Compare text files side by side to read each version separately, or switch to inline view to read changes together. The download is a text report with both original inputs, your options and marked differences. It is not a merged file or a patch.

When a file comparison needs another approach

Why can’t my file be opened?

Check that it is a plain text file, no larger than 400 KB and within 100,000 characters. Older Windows or exported files may use another encoding. Open the file in your editor and save a separate UTF-8 copy, then retry. Renaming a PDF or Word document to .txt does not convert its contents.

Can I compare text files larger than the limit?

Compare smaller sections with enough surrounding text to understand the changes, or use an editor’s file comparison. A large number of edits can also exceed the comparison time limit; try line mode.

Why do different files sometimes show no differences?

Windows and Unix line endings are always treated as equivalent. Ignore case hides capitalization differences. Ignore whitespace ignores all spaces, tabs and line breaks, so “a b” and “ab” match. Leave those options off when they matter. A matching result is a text comparison with these rules, not a check of every file byte.

Can I merge files or compare a folder?

This page compares two text files at a time and provides a report. It does not combine edits, compare folders or detect moved blocks. For editing workflows, follow the Notepad++ guide or VS Code guide.

Prefer working in your editor? Follow the guides for VS Code or Notepad++.