← Back to tools

Domain ID Generator

Generate Hyperlane domain IDs from chain names

How It Works

This tool generates Hyperlane domain IDs by converting chain names to their numeric representation. The process is deterministic, meaning the same chain name will always produce the same domain ID.

  1. Convert the chain name to UTF-8 bytes
  2. Interpret the bytes as a hexadecimal number
  3. Convert the hex number to decimal to get the domain ID

Note: BigInt is used for conversion to ensure no precision is lost, even for longer chain names that would exceed JavaScript's safe integer range (253 - 1).

Examples

Chain Name

KYVE

Domain ID

1263747845

Chain Name

ethereum

Domain ID

31337511839568927