Skip to main content

Text & Lists

Hamming Distance Text Processor

Transform text with Hamming Distance and the selected rules. Enter the text, set the transformation rules, then copy the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Transform text with Hamming Distance and the selected rules. Enter the text, set the transformation rules, then copy the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Hamming Distance Text Processor compares equal-length strings and counts positions with different characters.

3 Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Provide two strings with the same length.
  3. Check the input encoding before comparing positions.
  4. Use the count as a positional difference measure.

Example

Input: karolin kathrin

Settings: Hamming Distance Text Processor: Use the operation's comparison fields as provided.

Result: 3

Limits

  • Hamming Distance Text Processor: Hamming distance requires equal-length inputs.
  • Hamming Distance Text Processor: It counts substitutions and does not model inserted or deleted characters.
  • Hamming Distance Text Processor: The operation runs in the browser and does not need a network service.