loading prices...
prices by coingecko
onchain.search tools/local · 0 uploads/links/about

home / data / merkle-tree-generatorlocal

Merkle Tree and Proof Generator

Build a Merkle root from a list of leaves using Keccak-256 and get the proof for one leaf, as used in airdrops.

merkle-tree-generatorready · runs in this browser

Runs locally in your browser. Nothing you type is sent anywhere.

data tools · free · runs in your browser · no sign-up · no wallet

01 // about this tool

A Merkle tree summarises many items in one root hash. Contracts for airdrops and allowlists store only the root, and users supply a proof. This tool uses sorted-pair Keccak-256 (the common OpenZeppelin style), and promotes an odd node up a level.

02 // how to use it

  1. Paste the leaves, one per line.
  2. Say whether they are text or ready-made hashes.
  3. Pick the leaf for the proof and press Run.

03 // faq

Does it match OpenZeppelin's MerkleProof?

It uses the same sorted-pair method. Check that your contract hashes leaves the same way before relying on it.

Why sorted pairs?

So the verifier does not need to know whether each proof element is a left or right neighbour.

04 // related tools

all 19 data tools →