Convert & calculate · Merkle proof

Merkle tree builder

Build an allowlist: paste addresses, get the root to publish and a proof for each one.

Runs in your browser

Your allowlist

One address per line. The tree rebuilds a moment after you stop typing.

Paste straight out of a spreadsheet. Blank lines are ignored; anything that isn't an address is hashed as plain text.

Pairs are sorted before hashing, which is what OpenZeppelin's MerkleProof library expects, so a root from here verifies against a stock allowlist contract.

No list yet

Paste your addresses on the left. You'll get one root to publish in your contract, and a proof for every address on the list.

What you do with these

The root goes in the contract; the proof goes in the transaction.

A lets a contract check membership of a list of any size while storing a single value. Each claimer sends their own proof (a handful of hashes) and the contract replays them to see whether they rebuild the root.

Solidity
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract Allowlist {
    bytes32 public immutable root;

    constructor(bytes32 _root) {
        root = _root; // the Merkle root from this page
    }

    function claim(bytes32[] calldata proof) external {
        bytes32 leaf = bytes32(uint256(uint160(msg.sender)));
        require(MerkleProof.verify(proof, root, leaf), "not on the list");
        // ...mint, transfer, or whatever the allowlist unlocks
    }
}

About this tool

A Merkle tree compresses a list, such as an NFT allowlist or an airdrop list, into one 32-byte root that a contract can store. Paste one address per line to get the Merkle root and a proof for every address. Each address is used as a leaf padded to 32 bytes, other lines are hashed with keccak256, and pairs are sorted before hashing, so proofs verify with OpenZeppelin's MerkleProof.

Common questions

How do I verify a Merkle proof in Solidity?

Store the root in your contract, build the leaf the same way this tool does, bytes32(uint256(uint160(msg.sender))), and call MerkleProof.verify(proof, root, leaf) from OpenZeppelin. The example contract on this page shows the whole pattern.

Is it compatible with OpenZeppelin's StandardMerkleTree?

No. StandardMerkleTree hashes each ABI-encoded leaf twice with keccak256, while this tool uses the address padded to 32 bytes as the leaf. Both sort pairs, but the leaves differ, so the roots differ. Build leaves in your contract the way this tool does.

Does the order of addresses matter?

Yes. Keep the list in the order you built it from. Pairs are sorted at each level, but the leaves are not, so the same addresses in a different order can give a different root.