ファイル差分 オンライン

2つのテキストファイルをアップロードまたは貼り付けて並べて比較します。

元のファイル

Click or drag & drop

変更後のファイル

Click or drag & drop

What Is File Diff?

File Diff is a free online tool that compares two text files side by side and highlights every added, removed, and unchanged line. Upload files by dragging and dropping them onto the drop zones, or paste text directly into the editors. The diff result is shown in split view (two columns) or unified view (single column with +/- markers).

How to Use File Diff

  1. Drag and drop your original file onto the left drop zone, or click to browse.
  2. Drag and drop your modified file onto the right drop zone, or click to browse.
  3. You can also paste text directly into the editors below the drop zones.
  4. Click Compare to run the diff and view the results.

Features

  • Drag-and-drop or click-to-upload file interface
  • Supports any plain text file format
  • Split view and unified view diff modes
  • Line number display with added/removed counters
  • Copy diff result to clipboard
  • Runs entirely in your browser — zero data uploaded

FAQ

What file types does File Diff support?

File Diff supports any plain text file: .txt, .json, .yaml, .xml, .csv, .md, .ts, .js, .py, .go, .java, .sql, .toml, .ini, and more.

Can I paste text instead of uploading a file?

Yes. After uploading a file the content appears in an editable textarea, or you can paste text directly without uploading any file.

Are my files uploaded to a server?

No. Files are read entirely in your browser using the FileReader API. Your file contents never leave your device.