home / ethereum / ethereum-signed-message-hashlocal
Ethereum Signed Message Hash (EIP-191)
Get the EIP-191 hash that personal_sign actually signs, with the \x19Ethereum Signed Message prefix.
ethereum-signed-message-hashready · runs in this browser
Runs locally in your browser. Nothing you type is sent anywhere.
ethereum tools · free · runs in your browser · no sign-up · no wallet
01 // about this tool
When a wallet signs a plain message it first adds the prefix \x19Ethereum Signed Message:\n and the message length, then hashes it with Keccak-256. This stops a signed message from being a valid transaction. Use this to check a hash when verifying a signature.
02 // how to use it
- Type or paste the message.
- Choose text or hex.
- Press Run.
03 // faq
Why is the hash different from keccak256 of my message?
The prefix and length are added first. The tool shows both hashes.
Is signing a message ever risky?
Plain text messages are usually safe. Typed data (EIP-712) can authorise token transfers, so read it with the EIP-712 decoder first.