How to Use TextFileCompare.com

TextFileCompare.com is a free online tool to compare two text files or code blocks side-by-side. Whether you're reviewing code changes, checking document versions, or merging config files, here’s how to use the tool effectively:

1 Enter or Paste Text

2 Upload Files

3 Select Comparison Options

Auto‑Compare: Runs the diff automatically when text changes.
Word‑Level Diff: Highlights added or removed words inline.
Mode: Override auto-detection if needed.

4 Run Comparison & Merge

Compare: Shows the line-by-line visual diff.
Close Diff: Hides the comparison panel.
Swap Texts: Switches left and right editors (disabled if any side is empty).
Smart Merge: Automatically merges with visible conflict blocks like Git.
Undo Merge: Revert the last Smart Merge result.

5 Export & Download

6 More Tools & Shortcuts

7 Dark/Light Theme

Toggle the theme from the top-right switch. The editor and diff colors will auto-adjust and remember your preference.

8 Keyboard Shortcuts

9 Session Persistence

Text, mode, and preferences are automatically saved in your browser. Refresh or return later to continue from where you left off.

More Tools & Information