A free edge API by formatho.com, privacy-first developer tools.
Free, no signup, runs entirely in your browser — your data never leaves your device.
curl "https://ens-namehash-formatho.filesformatho.workers.dev/api?name=alice.eth"
# โ { "namehash": "0x787192fc5378cc32aa956ddfdedbf26b24e8d78e40109add0eea2c1a012c3dec", "labels": [...], ... }
curl "https://ens-namehash-formatho.filesformatho.workers.dev/api?name=eth"
# โ { "namehash": "0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae", ... }
Pass any ENS name. GET or POST JSON โ {"name": "alice.eth"}. Returns the ENSIP-2 namehash plus every label with its individual keccak-256 labelhash. Empty string or "." yields the root node 0x00โฆ00.
How it works: start from 32 zero bytes, then right-to-left over labels: node = keccak256(node โ keccak256(utf8(label))) โ the exact algorithm ENSIP-2 / EIP-137 specifies.
Full parameter reference: /api endpoint.
Compute namehashes entirely client-side: ENS Namehash Calculator on formatho.com.
Browse every free Formatho Worker tool on the Formatho Tools index.