Skip to tool

Apex String similarity Online

Estimate similarity ratio with a target string.

The output updates as you type. The tool processes input in your browser.

Worked example

Use the score as a ranking signal. Different similarity algorithms can give different scores for the same pair.

Other
"manuals"
Sample input
manual
Sample output
similar_chars=6
percent=85.71

Using this operation in Apex

The interactive result uses JavaScript. Apex text utilities use the System namespace. Consider Salesforce transaction limits when applying an expensive transformation to many records.

Apex reference