Converters, formatters, hashes, validators, and the small utilities you keep reopening stay together instead of getting lost across tabs.
Calculate Keccak-256 hash
Switch between plain text and hexadecimal input without leaving the same workspace or reformatting data elsewhere.
Perfect for selectors, message hashing, storage checks, and the small cryptographic tasks that come up during Web3 work.
Use it as a quick correctness pass when you need to confirm a hash before moving back into code or contract tests.
Source code from the selected tool, shown here alongside the live version on the right.
// npm install viem import { keccak256, toBytes } from 'viem'; // Hash a text string const text = "Hello, World!"; const textHash = keccak256(toBytes(text)); console.log(textHash); // 0xacaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f