Convert & calculate · keccak256

Hash generator

Hash any text with keccak256, sha256 or sha512 as you type.

Runs in your browser

Text to hash

Nothing is uploaded. The hashing happens in this tab.

Every character counts, including spaces and line breaks. Change one and the hash changes completely.

Three fingerprints, at once

Start typing on the left and the keccak-256, SHA-256 and SHA-512 hashes all appear here as you go.

Which one do I want?

keccak-256

What Ethereum uses everywhere: deriving addresses, event topics and function selectors. If a Solidity contract hashes something, this is the answer it gets.

SHA-256

What Bitcoin uses, and the general-purpose hash of the wider internet: TLS certificates, file checksums, password schemes.

SHA-512

The same family as SHA-256 with a longer, 64-byte output. Common inside signing and key-derivation schemes.

The first 4 bytes row is the . Hash a signature such as transfer(address,uint256) and you get 0xa9059cbb. The full keccak-256 of an event signature is its topic0 in a log.

About this tool

A hash generator turns any text into a fixed-length fingerprint. This one computes keccak256, the hash Ethereum uses for addresses, function selectors and event topics, plus SHA-256 and SHA-512, as you type. Your text is encoded as UTF-8 first. keccak256 is computed by two independent libraries that must agree, and nothing you type leaves your browser.

Common questions

Is keccak256 the same as SHA3-256?

No. Ethereum's keccak256 is the original Keccak algorithm, which pads its input differently from the SHA3-256 that NIST later standardised. The same input gives different hashes, so use keccak256 for anything on Ethereum.

How do I get a function selector from a signature?

Type the signature with no spaces or argument names, such as transfer(address,uint256). The First 4 bytes row shows the selector, 0xa9059cbb. The full keccak256 of an event signature is that event's topic0.

Does it hash hex input as bytes?

No. Everything you type is treated as UTF-8 text, so 0x1234 is hashed as six characters, not two bytes. To hash raw bytes the way Solidity's keccak256(bytes) does, use ethers.keccak256 or Foundry's cast keccak.