How to compare two texts
Paste the original text on one side and the changed text on the other. Lines that were removed are highlighted in red and added lines in green, the same convention as Git. Use Prev and Next, or the [ and ] keys, to jump between changes, and copy the result as a unified diff for a review or a ticket.
Reading a unified diff
--- original +++ changed @@ -3,4 +3,4 @@ timeout: 30 -retries: 3 +retries: 5 region: eu-west-1
- lines were removed, + lines were added, and lines starting with a space are unchanged context. @@ -3,4 +3,4 @@ means the block starts at line 3 and covers 4 lines in both versions.
Getting a cleaner comparison
- Line endings: files from Windows use CRLF and others use LF, which can make every line look changed. Normalise them first.
- Trailing spaces and tabs versus spaces count as differences. Run both texts through the same formatter first.
- Comparing lists: sort both lists first so moved items don't show as removed and added.
- Comparing JSON: use JSON Compare, which ignores key order and formatting.
- Comparing PDFs: use PDF Compare, which compares the text and the rendered pages.
Common uses
Checking what changed in a config file before deploying, comparing two API responses, reviewing a contract or policy revision, and spotting edits between two drafts of an article. Everything runs in your browser, so it's safe for internal configs and documents.