Menu

Search tools and guides

DMARC & DKIMCheck DMARC and DKIM, generate records and keys
SPF Record CheckerValidate SPF and count lookups against the limit of 10
DNS Blacklist CheckerCheck IPs and mail servers against spam blocklists
Email Header AnalyserTrace hops, delays and SPF/DKIM/DMARC in raw headers
Email ValidatorSyntax, MX, SPF and DMARC verification
DNS LookupQuery A, AAAA, MX, TXT, NS and more
WHOIS LookupRegistration data over RDAP
Website StatusAvailability and response-time checks
Ports ReferenceWhat runs on each TCP and UDP port, and if it's safe
MAC Address LookupFind a MAC address vendor and check if it's random
Download Time CalculatorHow long a file takes at your broadband speed
QR Code GeneratorQR codes for Wi-Fi, links and text, as PNG or SVG
User Agent ParserWhat your browser says about itself, decoded
IP ConverterDecimal, hex, binary and IPv6 conversion
Subnet CalculatorCIDR ranges, masks and subnet splitting
CIDR AggregatorMerge IPs and ranges into the fewest CIDR blocks
SSL CheckerInspect certificates, chains and expiry
HTTP HeadersAudit security headers and redirect chains
Password GeneratorCryptographically secure random passwords
Hash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512
JWT DecoderDecode JWT claims and verify HS256, RS256, ES256
Unix Timestamp ConverterConvert epoch seconds or ms to UTC and UK time
UUID GeneratorGenerate UUID v4, v7 and ULIDs; decode any UUID
Cron Expression ExplainerCron schedules in plain English, with next runs
Regex TesterTest JavaScript regex with live match highlighting
Chmod CalculatorUnix permissions as octal, symbols and commands
Colour Contrast CheckerWCAG contrast ratio for text and background colours
JSON FormatterPretty-print, minify and validate JSON
Base64 EncoderConvert to and from Base64, Unicode safe
URL EncoderPercent-encode and decode URL strings
HTML EntitiesEscape and unescape HTML special characters
Text Diff CheckerCompare two texts line by line, word by word
Word & Character CounterWords, characters, reading time and SMS segments
Case ConverterUPPER, lower, Title Case, camelCase and more
URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs
DNS records explained: A, AAAA, CNAME, MX, TXT, NS and the restWhat each common DNS record type does, the rules that trip people up – CNAMEs at the root, MX pointing at an IP – and how TTL and caching really work.
Mbps and MB/s: why downloads look slower than your broadband speedWhy a 100 Mbps line downloads at 12 MB/s, why a 1 TB drive shows 931 GB, what slows real transfers, and what a UK advertised average speed promises.
Setting up SPF, DKIM and DMARC for Microsoft 365Step by step for a domain on Microsoft 365, from the first SPF record to a DMARC policy of reject, avoiding the mistakes that cause bounces.
SPF "too many DNS lookups": why it happens and how to fix itWhat the ten-lookup limit in RFC 7208 counts, how to tally your own record, and the fixes that work without silently breaking mail.
How to read a DMARC aggregate reportA field-by-field tour of the XML that receivers send to your rua= address, and how to turn it into a list of senders to fix before you enforce.
What your IP address reveals – and what it does notHow IP geolocation really works, why it often puts you in the wrong town, what a website can and cannot learn from your address, and how UK law treats it.
Diagnosing a website that will not load: DNS, TLS and HTTP in orderA methodical checklist for working out whether an outage is DNS, the certificate, the server or just you – and what each kind of failure looks like.

Arrow keys move through results, Enter opens one, Escape closes.

Text Diff Checker

Paste two versions of a text to see exactly what was added, removed and changed, down to the word or character.

Try:
Compare
View
Highlight changes by
Unchanged lines

The comparison updates as you type. Nothing is uploaded: the texts are compared in your browser.

About the Text Diff Checker

A diff (short for difference) shows how one version of a text became another. This tool compares an original and a changed text line by line, then highlights the exact words or characters that differ inside each changed line. It is useful for checking edits to a contract or article, spotting what changed between two versions of a configuration file, reviewing a colleague's rewrite, or confirming that two supposedly identical blocks of text really are the same.

How to use it

  1. Paste the earlier version into Original text and the later version into Changed text. The comparison appears as you type.
  2. Choose Side by side to see the two versions in parallel columns, or Unified to see one column with removed lines (marked with a minus) above the lines that replaced them (marked with a plus).
  3. Pick Word or Character highlighting. Word mode is easier to read for prose; character mode pinpoints single-letter changes such as a typo, a changed digit in an IP address, or a swapped quote mark.
  4. Long stretches of identical lines are folded away, leaving three lines of context around each change. Tick Show all lines, or press a fold, to see everything.
  5. Use Copy unified diff to copy the result in the standard format used by diff -u and Git, ready to paste into a ticket, an email or a code review.

Reading the result

The summary counts lines in three groups. An added line exists only in the changed text and a removed line exists only in the original. Where some lines were removed and others added in the same place, they are paired up and counted as changed, and the words inside them are compared so you can see what was edited rather than reading two whole lines. Removed text is shown struck through on a red tint and added text underlined on a green tint, so the meaning does not rely on colour alone, and screen readers hear each line described as removed or added.

A worked example

Suppose the original says The meeting is on Tuesday at 10:00. and the changed version says The meeting is on Thursday at 10:30. A line-level diff only tells you the line changed. Word highlighting marks Tuesday as replaced by Thursday and the minutes 00 by 30 (the colon is its own token, so it stays plain), leaving the rest of the sentence unmarked. In character mode it narrows further: the e of Tuesday is removed, an h and an r are added, and a single 0 becomes 3. The unified diff for that one-line file reads:

--- Original
+++ Changed
@@ -1 +1 @@
-The meeting is on Tuesday at 10:00.
+The meeting is on Thursday at 10:30.

The @@ -1 +1 @@ line is a hunk header: it says the block starts at line 1 in both files. For longer blocks it gives a start and a length, such as @@ -12,7 +12,8 @@, meaning seven lines from line 12 of the original became eight lines from line 12 of the changed text.

How the comparison works

The tool uses Eugene Myers' difference algorithm, the same approach behind GNU diff and Git. It looks for the shortest edit script, the smallest number of line insertions and deletions that turns the original into the changed text, which is the same as finding the longest sequence of lines the two texts share in order. Lines common to the start and end are skipped first, and the search works from both ends towards the middle so it needs memory in proportion to the length of the texts rather than their square. The same algorithm then runs again inside each changed pair of lines, on words or characters, to produce the inline highlighting.

Ignore case treats upper and lower case letters as equal. Ignore whitespace differences treats any run of spaces or tabs as a single space and ignores spaces at the start and end of a line, so re-indented code compares as unchanged; it does not ignore a space added inside a word. These options only affect what counts as a match: the text you see is always exactly what you pasted.

Limitations

  • Line endings are normalised, so a Windows file (CRLF) and the same file saved on a Mac or Linux machine (LF) compare as identical. A missing newline at the very end of a text does count as a change, as it does with diff, unless you ignore whitespace.
  • Each text can have up to 50,000 lines. Texts that differ in thousands of separate places are refused rather than freezing your browser; compare them in smaller sections.
  • Where several lines change together they are paired in order, so a heavily rewritten paragraph can pair lines that are not really related. The added, removed and changed totals are still correct line counts.
  • This is a text comparison. It does not understand the structure of JSON, spreadsheets or word-processor files; for formatted documents, copy the plain text out first.

Privacy

Both texts stay on your device. The comparison runs in JavaScript inside this page, nothing is sent to IP Pigeon's servers, and nothing is placed in the address bar, so you can safely compare drafts, logs or configuration files that contain private details. Closing or reloading the page discards them.

Common questions

What do the plus and minus signs mean in a diff?

In a diff, a line starting with a minus sign was removed from the original and a line starting with a plus sign was added in the changed version. Lines with neither sign are unchanged context. An edited line appears as a minus line followed by a plus line, because a diff records an edit as a removal and an addition.

What does @@ mean in a diff?

The @@ line in a unified diff is a hunk header, which says where a block of changes sits in each file. In @@ -12,7 +12,8 @@, the block covers seven lines starting at line 12 of the original and eight lines starting at line 12 of the changed text. A length of one is left out, giving @@ -1 +1 @@.

What is a unified diff?

A unified diff is the standard text format for showing the changes between two files, produced by diff -u and by Git. It shows both versions in a single column: removed lines start with a minus, added lines with a plus, and a few unchanged lines of context surround each change. Headers beginning --- and +++ name the two files.

What algorithm does Git use to compare files?

Git compares files with the Myers difference algorithm by default, the same approach as GNU diff. It finds the shortest edit script: the smallest number of line insertions and deletions that turns one text into the other. Git also offers alternatives such as patience and histogram through its --diff-algorithm option, which can give more readable results on code.

Accessibility

Adjust how the site looks and behaves. Your choices are saved in this browser only.

Colour theme
Text size
Accessibility statement