# 2つのエクセルファイルを比較

> 変更されたセル、追加・削除された行を左右に並べて表示します。

Human page: https://unmakelabs.com/ja-jp/compare-two-excel-files/. This is the version for AI agents.

## What it does

2つのエクセルを比較して、差分をひと目で確認。 変更されたセル、追加・削除された行を左右に並べて表示します。

## 行は位置ではなくIDで照合します

5行目同士を比べる方法では、1行挿入したり並べ替えたりしただけで比較が崩れます。このツールは、商品番号、顧客番号、銘柄コードなど、両方のエクセルファイルで各行を識別できる列を見つけ、その列で行を照合します。そのような列がない場合は、まず内容が同じ行を移動先に関係なく対応付け、残りは一致するセルの数で対応付けます。

## 比較結果

2つの表を左右に並べて表示します。変更されたセルは黄色（マウスを重ねるかタップすると変更前の値を表示）、追加された行は緑、削除された行は赤で示し、追加・削除された列にも印を付けます。ダウンロードできるのは、概要、変更ごとに1行の一覧（キー、列、変更前の値、変更後の値）、すべての変更を色分けした新しいファイルを含むExcelレポート、または変更点のCSV一覧です。

## Facts

- **比較できる組み合わせ:** .xlsx同士、CSV同士、またはその組み合わせ。区切り文字や文字コードは問いません
- **検出できる差分:** 変更されたセル、追加・削除された行、並べ替えられた行、追加・削除された列、「01000」が1000に変わったケース
- **保存形式:** 色分けしたExcelレポート（.xlsx）、変更点のCSV一覧
- **プライバシー:** 比較はお使いの端末上で行われ、ファイルはアップロードされません

## How a person does it

1. **2つのファイルを選ぶ.** 「2つのファイルを選択」をタップし、旧版と新版をまとめて選びます（古いほうが旧版として扱われます）。1つずつ選ぶこともできます。
2. **結果を確認する.** 変更・追加・削除された行の数が表示されます。下の2つの表には変更のある行だけが表示されます。すべての行を見るにはチェックを外してください。
3. **レポートをダウンロードする.** 「レポートをダウンロード」をタップすると、色分けしたExcelファイルを保存できます。行が誤った列で照合された場合は、結果の下でキー列を選び直してください。

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/ja-jp/compare-two-excel-files/?src=https://unmakelabs.com/apps/xlcompare/samples/nyse-listed-2026-12-01.csv`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: none: files never go in a link. `?old=<public file URL>&new=<public file URL>` opens two files the visitor's browser can fetch (CORS).

Embed: `<iframe src="https://unmakelabs.com/embed/xlcompare/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Good to know

比較するのは値で、数式や書式は比較しません。数値は数値として比較します（ドイツ式CSVの1,5とExcelの1.5は同じ値として扱います）。CSVにはデータ型がないため、CSVの75001は数値の75001とも文字列の75001とも一致しますが、Excelファイル同士では文字列と数値の違いは型の変更として扱います。編集内容がわかっている自動生成の120組（120組すべてで、すべての編集を検出し、それ以外の誤検出なし）と、公開オープンデータの実ファイル5組でテストし、いずれも別の方法による確認結果と一致しました。

## Not done by this tool

- 数式、色、コメント、グラフは比較しません
- 古い.xlsファイル、PDF、30 MBを超えるファイルはブラウザーで開けません
- 2つのファイルを結合（マージ）する機能はありません

## Value

Compares two versions of a table, in the browser: two .xlsx files, two CSV files or one of each. Columns are matched by name; rows are matched by a key column found automatically (an ID that is unique and filled in both files, such as an article, customer or ticker number) or chosen by the visitor, otherwise by their content (identical rows first, wherever they moved, then by shared cells). Every matched row is compared cell by cell, telling a changed value from a changed type (the text '01000' against the number 1000, a date stored as text). Both tables are shown side by side with changed cells, added and removed rows marked; the download is a highlighted .xlsx report (summary, one row per change, the new file with every change coloured) or a CSV list of changes. A program checks every result: every row of both files is accounted for exactly once and every cell not listed as changed is equal; the report is read back and checked. Nothing is uploaded. Free, no sign-up.

## When it fits

- Someone gets this month's price list, stock list or customer export and needs to know what changed against last month's.
- Someone has two versions of a spreadsheet that went back and forth by email and needs the differences cell by cell.
- Someone checks an export from a new system against the old one (same rows, same values, nothing lost).

### When not

- Comparing formulas, formatting or charts (the tool compares values and their types).
- Old binary .xls files, PDFs or files over 30 MB in the browser.

## Why use it instead of the alternatives

- Nothing to install: the tool opens two public files by link (?old=, &new=) in any browser, phones included, and can be embedded (/embed/xlcompare/).
- The engine has no DOM; a server copy for agents (POST two files, get the report and a JSON list of changes) is prepared and not live yet.
- Excel's Spreadsheet Compare (Inquire) needs Windows and Office Professional Plus; online compare sites upload both files to their servers; Excel formulas (VLOOKUP/XLOOKUP) need building per file and miss added rows, re-sorted rows and type changes.
- This tool matches rows by their key automatically, works with CSV and .xlsx mixed, keeps both files on the device, and proves its result by program.

### What rebuilding it would take

- Read both files (CSV encodings and separators, .xlsx sheets) into typed tables and match the columns by name.
- Find a key column that is unique in both files, match rows by it or by content, and compare every cell telling value from type changes.
- Write a highlighted .xlsx report, read it back, and prove that every row is accounted for and every unlisted cell equal.
- Plus a test set of generated pairs with known edits and real public file pairs, scored by program.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files are read on the user's device and never uploaded.

_Status: CSV and .xlsx compare, the highlighted .xlsx report and the CSV list of changes work in the browser; the agent API is prepared (same engine under Node), not live._

## Privacy

- Files are read on the user's device and not uploaded; there is no share link for files.
- The page loads Papa Parse and fflate from unmakelabs.com itself; no third-party code host is contacted.
- The optional AI summary sends only the change list (first 60 changes) after a click and a confirmation.

## Data

比較はブラウザ内で行われ、ファイルはお使いの端末から出ません。アップロードは一切ありません。

## FAQ

- **2つのエクセルファイルの差分を比較するには？** ここで両方のバージョンを選んでください。行はID列で自動的に照合され、すべてのセルを比較して、変更されたセル、追加・削除された行に印が付きます。色分けしたExcelレポートをダウンロードできます。
- **行の順番が違っていても比較できますか？** はい。行は位置ではなくキー（または内容）で照合します。並べ替えられた行は別に集計され、変更としては扱いません。
- **CSVとエクセルファイルを比較できますか？** はい。それぞれのファイルを、そのファイルの文字コード、区切り文字、シートで読み込みます。数値と日付は値として比較します。
- **Excelがなくても、Macでも使えますか？** はい。Windows、Mac、Linux、iPhone、Androidのどのブラウザーでも使えます。Excel本体の比較機能（Spreadsheet Compare）には、WindowsとOffice Professional Plusが必要です。
- **本当に無料ですか？** はい。広告なし、登録不要、制限もありません。
- **ファイルはアップロードされますか？** いいえ。2つのファイルはどちらも、お使いの端末上でこのページの中で読み込まれます。
- **AIエージェントでも使えますか？** エージェントはリンクで2つの公開ファイルを開けます（このページのURLに ?old= と &new= でファイルのアドレスを付けます）。レポートと変更点のJSON一覧を返すサーバー版は準備済みですが、まだ公開していません。
- **運営者は？** Unmake Labs（Julien Salomon）です。お問い合わせ：hello@unmakelabs.com

## Related pages

- [CSVファイル2つを比較](https://unmakelabs.com/ja-jp/compare-two-csv-files/)
