KECCAK-256 HASH GENERATOR ========================= Generate a Keccak-256 hash from text online. Choose UTF-8, Hex, or Base64 input, use live hashing or HMAC, and copy the digest in Hex or Base64. u003cpu003eThe u003cstrongu003eKeccak-256 Hash Generatoru003c/strongu003e calculates a 256-bit hash from text or encoded bytes. Select u003cemu003eUTF-8u003c/emu003e, u003cemu003eHexu003c/emu003e, or u003cemu003eBase64u003c/emu003e input, then copy the digest as hexadecimal or Base64 for development, testing, or data checks.u003c/pu003e OVERVIEW & METADATA ------------------- Canonical URL: https://million.tools/keccak-256/ Markdown Copy (.md.txt): https://million.tools/keccak-256.md.txt Plain Text Copy (.txt): https://million.tools/keccak-256.txt API Endpoint: https://million.tools/api/v1/run/keccak-256 (POST, Keyless, 60 req/min) SEO Title: Keccak-256 Hash Generator Online | million.tools Alternative Names: Keccak-256 Hash Calculator, Keccak-256 Online, Keccak256 Hash Generator, Keccak-256 Calculator, Keccak Hash Calculator, Keccak-256 Hash Online, Ethereum Keccak-256 Calculator Category: Hash (https://million.tools/hash/) Tags: #Keccak Application Category: DeveloperApplication Platform: Web (All modern desktop and mobile browsers, requires JavaScript) Price: Free ($0.00 USD, no registration or sign-up required) Live Calculation: Supported (Auto / Live toggle enabled by default) Usage Statistics: 5 uses | 524 views Published: 2026-10-26 Last Updated: 2026-11-23 Author: Egor Volchenko (Developer & Author) KEY FEATURES ------------ - Keccak-256 hashing from text input - UTF-8, Hex, and Base64 input encoding options - Auto / Live hash updates - HMAC-KECCAK_256 mode - Hex (lower), Hex (UPPER), and Base64 digest formats - Run, Clear, and Copy controls PARAMETERS & INTERFACE CONTROLS ------------------------------- Input Parameters & Options: - input_text: Input text. - hmac_key: HMAC Secret Key. - input_encoding: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | Windows-1251 (Cyrillic) | Windows-1252 (Latin 1) | ... (42 options) - output_format: Hex (lower) | Hex (UPPER) | Base64 - hmac_enabled: Boolean. Enable HMAC-KECCAK-256. - hmac_encoding: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | Windows-1251 (Cyrillic) | Windows-1252 (Latin 1) | ... (42 options) Output Fields & Metrics: - result: Keccak-256 Hash Result. Controls: Run, Clear, Copy, Fill test data, Auto / Live INTERACTIVE EXAMPLE (TEST VECTOR) --------------------------------- Settings: - Input Encoding: Hex - Output Format: Hex (lower) - Key Encoding (Search/Type): UTF-8 Input text: 616263 Keccak-256 Hash Result: 4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45 HOW TO USE THE KECCAK-256 HASH GENERATOR ---------------------------------------- Use this online Keccak-256 calculator to hash a text string or a sequence of bytes. The result is always a 256-bit digest; the output controls only change how that digest is displayed. HOW TO GENERATE A KECCAK-256 HASH --------------------------------- 1. Type or paste a string into the Input text editor. 2. Choose Input Encoding. Keep UTF-8 for ordinary text, or select Hex or Base64 when your input represents encoded bytes. 3. Under Separator, select Hex (lower), Hex (UPPER), or Base64 for the Keccak-256 Hash Result. These choices change the displayed format, not the underlying digest. 4. Leave Auto / Live enabled for live updates, or use Run to calculate the hash on demand. 5. Read the digest in Keccak-256 Hash Result. Select Copy to copy it, or Clear to remove the input and reset the working area. For example, with Input Encoding set to UTF-8, enter abc. The Keccak-256 digest in Hex (lower): 4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45 USING HMAC-KECCAK_256 --------------------- Turn on Enable HMAC-KECCAK_256 when you need a keyed message authentication code instead of a regular Keccak-256 digest. HMAC uses a secret key as well as the message, so its output differs from an unkeyed hash. 1. Switch on Enable HMAC-KECCAK_256 and provide the required key if the tool displays a key-entry control. 2. Enter your message in Input text, choose Input Encoding and an output format, then read the live result or press Run. Turn the switch off to return to standard Keccak-256 hashing. HMAC-Keccak-256 is not interchangeable with the unkeyed keccak256() operation used in Ethereum contracts. WHAT IS KECCAK-256? ------------------- Keccak-256 is a cryptographic hash function that produces a fixed 256-bit (32-byte) digest from input of any length. In hexadecimal form, that is 64 characters. The same sequence of bytes always produces the same result; changing even one byte generally changes the digest completely. Keccak belongs to the sponge-based family of algorithms that led to SHA-3. Its original Keccak-256 variant is used in Ethereum-related systems, including smart contract development and cryptographic identifiers. KECCAK-256 VS. SHA3-256 ----------------------- Keccak-256 and the standardized SHA3-256 share the underlying Keccak permutation but use different domain-separation padding. They therefore produce different hashes for identical input. If a protocol, library, or test fixture specifies Keccak-256, substituting a SHA3-256 function will not give the expected result. For a quick reference, Keccak-256 of the empty byte string is c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470. The SHA3-256 (https://million.tools/sha3-256/) result for the same empty input begins with a7ffc6f8. UNDERSTANDING UTF-8, HEX, AND BASE64 INPUT ------------------------------------------ The selected Input Encoding determines which bytes are hashed. In UTF-8 mode, entering 616263 hashes six text characters. In Hex mode, those characters represent the three bytes for abc. Likewise, YWJj in Base64 represents the same three bytes. This distinction matters when reproducing known hashes. Use Hex or Base64 input for already-encoded binary data, and UTF-8 for normal text. Match the original data exactly, including whitespace, letter case, and line endings. KECCAK-256 FOR ETHEREUM AND DEVELOPMENT --------------------------------------- Ethereum uses the original Keccak-256 variant rather than FIPS SHA3-256. This hash calculator can help reproduce a digest from known input bytes, check development examples, or compare text-based test values. A smart contract may hash ABI-encoded or packed binary values instead of the characters shown on a screen. To match Solidity keccak256(), first ensure that you are hashing the same byte sequence as the contract; selecting the right algorithm alone is not enough. OUTPUT FORMATS AND SECURITY NOTES --------------------------------- Choose Hex (lower) or Hex (UPPER) when a system expects a 64-character hexadecimal digest, or Base64 when you need that same digest represented in Base64. Uppercase and lowercase hexadecimal are alternative spellings of identical bytes. Note: Important: Hashing is not encryption: there is no decryption step that recovers the original text. A plain Keccak-256 digest is also not a substitute for a dedicated password-hashing algorithm. FREQUENTLY ASKED QUESTIONS -------------------------- Q: Is Keccak-256 the same as SHA3-256? A: No. Both use the Keccak permutation, but the standardized SHA3-256 algorithm has a different padding suffix. They produce different hashes for the same input, so you must choose the variant required by your application. Q: How long is a Keccak-256 hash? A: A Keccak-256 digest is 256 bits, or 32 bytes. It is commonly written as 64 hexadecimal characters. Selecting Base64 changes only the text representation, not the digest length in bytes. Q: Does Keccak-256 work with Ethereum and Solidity? A: Ethereum uses the original Keccak-256 hash function. This tool is useful for comparing digests when the input bytes match. Solidity may hash ABI-encoded values, so hashing a readable string will not necessarily produce the same result as hashing an encoded contract argument. Q: Can I hash Hex or Base64 data instead of plain text? A: Yes. Use Input Encoding to tell the tool how to interpret the input. Hex and Base64 represent bytes, whereas UTF-8 hashes the text itself. For example, UTF-8 abc, Hex 616263, and Base64 YWJj describe the same three input bytes. Q: What does Enable HMAC-KECCAK_256 do? A: It enables HMAC-Keccak-256, a keyed message authentication construction. Unlike a normal hash, HMAC depends on both the message and a secret key. Use it only when the system you are working with specifically expects HMAC-Keccak-256. Q: Why does my Keccak-256 hash differ from an expected value? A: Check the algorithm first: Keccak-256 and SHA3-256 are not interchangeable. Next, confirm the exact input bytes, including UTF-8 versus decoded Hex or Base64, leading and trailing spaces, newlines, and any binary encoding performed by your application. Q: Can a Keccak-256 hash be decrypted or reversed? A: No. Keccak-256 is a one-way hash function, not encryption. A hash can help compare data against a known digest, but it does not contain an encrypted copy of the original message. For passwords, use a purpose-built password-hashing scheme rather than a raw fast hash. RELATED TOOLS ------------- - Keccak-512 Hash Generator (https://million.tools/keccak-512/): Generate an original Keccak-512 digest or HMAC from text or encoded bytes. Copy the 64-byte result in hexadecimal or Base64. - Bcrypt Verify (https://million.tools/bcrypt-verify/): Check a candidate password against an existing encoded Bcrypt hash. Read the match result and check format or parameter limits when verification fails. - Bcrypt Hash Generator (https://million.tools/bcrypt/): Generate a salted Bcrypt password hash from text or encoded bytes. Copy the complete encoded string for development fixtures and password-verification tests. - BLAKE3 Hash Generator (https://million.tools/blake3/): Calculate a 256-bit BLAKE3 digest from text or encoded bytes. Choose Hex or Base64 output and inspect the separate HMAC option. - BLAKE2s Hash Generator (https://million.tools/blake2s/): Calculate a 256-bit BLAKE2s digest from text or encoded bytes. Choose Hex or Base64 output and inspect the separate HMAC option. ABOUT THE AUTHOR ---------------- Egor Volchenko — Developer & Author Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience. Links: x.com (https://x.com/egorleet) | github.com (https://github.com/egorleet) | t.me (https://t.me/egorleet) | instagram.com (https://www.instagram.com/egorleet) | facebook.com (https://www.facebook.com/egorleet/) | egorleet.blog (https://egorleet.blog/) | mastodon.social (https://mastodon.social/@egorleet) | twitch.tv (https://www.twitch.tv/egorvolchenko) | stackoverflow.com (https://stackoverflow.com/users/31679135/egor-volchenko) | reddit.com (https://www.reddit.com/user/Vegetable_Window9185/) | youtube.com (https://youtube.com/@egor-volchenko)