2つの文章の違いを調べる方法(無料)
この記事のポイント
- 貼る
- 比べる
- 見る
修正前と修正後の文章で、どこが変わったのかを、目で探すのは大変です。2つの文章の違いを調べる は、2つの文章を貼り付けて、違いを表示するツールです。貼り付けた文章は、この端末の中で比べます。どこにも送られません。
手順
- 「文章A(前)」に、修正前の文章を貼り付けます。
- 「文章B(後)」に、修正後の文章を貼り付けます。
- 必要なら、「大文字と小文字を区別しない」「行の前後の空白を無視する」にチェックを入れます。
- 「比べる」を押します。
- 「違いを見る」に、追加された行と削除された行が表示されます。
同じ文章のときは、「違いはありません(同じ文章です)」と表示されます。
結果の見方
- 追加された行、削除された行が、色分けで表示されます。
- 行単位で比べるため、1行の中のどの部分が変わったかは、前後の行を見て判断します。
向いている場面
- 文章の修正点を、確認する
- 校正前後の原稿を、比べる
- メールや、規約の改訂内容を、確認する
- 設定ファイルや、コードの変更を、確認する
比べる前のコツ
- 同じ形式(改行の位置が近い)の文章のほうが、違いが見つけやすい
- 長い文章は、章や段落ごとに分けて比べる
- 空白や大文字・小文字の違いが邪魔なら、オプションを使う
例
上司に添削してもらった企画書の文章を、修正前後で比べた。変更された3か所が、すぐに分かった。
つまずきやすい点
- 全体が違うと表示される:改行の位置が違う。段落ごとに、比べ直す。
- 「行数が多すぎます(3000行まで)」と出る:文章を分けて、比べる。
- 同じに見えるのに差分が出る:空白や、全角・半角の違い。
よくある質問
文字単位で、違いを見られますか?
このツールは、行単位です。
貼り付けた文章は、送られますか?
いいえ。ブラウザの中で比べます。
まとめ
前と後を貼り付けて、「比べる」。行単位で、追加・削除された部分が分かります。
2つの文章の違いを調べるを使う(無料)あわせて使えるツール
- 2つのPDFの違いを比べる(差分チェック):2つのPDFの文字の違いを、色分けして表示します。
- 重複した行を消す・並べ替える:重複した行を消して、並べ替えます。
- 文字数カウント(エントリーシート・レポート用):文章の文字数・行数・原稿用紙の枚数などを数えます。
同じツールの、ほかの解説
How to Compare Two Texts (Free)
Key points
- Paste
- Compare
- Look
Finding by eye what changed between a before and after text is hard. Compare Two Texts (Diff) lets you paste two texts and shows the differences. The pasted text is compared inside this device and sent nowhere.
Steps
- Paste the before-edit text into "Text A (before)".
- Paste the after-edit text into "Text B (after)".
- If needed, tick "Ignore case" and "Ignore spaces at the start and end of lines".
- Press "Compare".
- Added and removed lines are shown under "See the differences".
For identical text, "No differences (the texts are the same)" is shown.
Reading the result
- Added and removed lines are shown colour-coded.
- Because it compares line by line, judge which part of a line changed by looking at the lines around it.
Good for
- Checking the changes in a text
- Comparing a manuscript before and after proofreading
- Checking revisions to emails or terms
- Checking changes to configuration files or code
Tips before comparing
- Texts of the same form (similar line-break positions) make differences easier to find
- Split long texts by chapter or paragraph and compare
- If differences in spaces or case get in the way, use the options
Example
Compared a proposal's text before and after a supervisor's corrections. The three changed places were clear at once.
Common stumbling blocks
- Everything shows as different: line-break positions differ. Compare again by paragraph.
- "Too many lines (up to 3000)" appears: split the text and compare.
- Differences appear though it looks the same: differences in spaces or full-width/half-width.
Frequently asked questions
Can differences be seen character by character?
This tool works line by line.
Is the pasted text sent?
No. It is compared inside the browser.
Summary
Paste before and after and press "Compare". You can see added and removed parts line by line.
Use "Compare Two Texts (Diff)" (free)Tools that go well with this
- Compare Two PDFs (Find Differences): Show the text differences between two PDFs, color-coded.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.