What it is
A string diff highlights the exact characters or words that differ between two short pieces of text and reports a similarity score, which is more precise than a line-level diff for short values like IDs, slugs, or single sentences.
When to use it
Use this to check a copied API key or token against the original, compare two similar-looking slugs or filenames, or spot a subtle wording change between two short strings.
Gotchas & limits
Similarity scores depend on the comparison granularity you pick — character-level and word-level diffs of the same pair of strings can report noticeably different similarity percentages.