MD6 Hash Generator
HG-23Paste text to get its MD6 hash. MD6-256 is the default, and MD6-224, MD6-384 and MD6-512 are in the Digest size menu. The text is hashed as UTF-8.
Runs in your browser. Nothing is uploaded.
Text (hashed as UTF-8)
MD6 hash
How to use it
- Type or paste your text into the input box. Sample loads the quick brown fox sentence.
- Choose the digest size: 256, 512, 384 or 224 bits.
- The hash appears as you press Hash. Pick lowercase hex, UPPERCASE hex or Base64.
- Tick Ignore one trailing line break if your text ends in a newline you do not want hashed, then copy the result.
What MD6 is
MD6 was designed by Ronald Rivest and a team at MIT and was submitted to the NIST SHA-3 competition in 2008. It was not chosen, and it is a different function from MD5, not a newer version of it. Its input is hashed through a tree of compression steps in 512-byte blocks, so very long messages can be processed in parallel in principle. This page uses the standard settings: no key, the default round count for the digest size, and the full tree.
What is checked and what is not supported
The page has its own implementation, checked against published MD6 values for the empty string, for abc, and for a 2,000 character input that runs through the tree. It does not support a key, a custom number of rounds or a custom tree height, which the full specification allows. MD6 is rarely used outside research, so use it only to match a value you were given. For new work choose SHA-256 or SHA-3.
Exactly what gets hashed
The text is encoded as UTF-8 and hashed as typed, so a space or a line break at the end changes the result, which is why the trailing line break option exists. A lone surrogate half is replaced with U+FFFD before hashing. This is a text hasher, so it cannot hash a binary file, and a file saved with other line endings would give a different hash than the same words typed here.
Questions people ask
How do I generate an MD6 hash?
Type or paste your text into the input box, choose the digest size and press Hash. The default is MD6-256, which is 64 hex characters. The hash is computed in your browser, and you can copy it or download it as a .txt file.
What is the MD6-256 hash of an empty string?
It is bca38b24a804aa37d821d31af00f5598230122c5bbfc4c4ad5ed40e4258f04ca. Leave the box empty and press Hash to see it. This value is one of the published checks that this implementation matches.
Is MD6 the same as MD5?
No. MD6 is a separate design from 2008 and shares only its name style with MD5. It has a tree structure, uses 64-bit words and can produce 224, 256, 384 or 512 bits, while MD5 is a single 128-bit chain that is broken.
Should I use MD6?
It was not standardized and few libraries support it. Use it only when a system you must match asks for MD6. For new work, SHA-256 or SHA-3 are the better supported choices.
Which MD6 digest sizes are available?
224, 256, 384 and 512 bits, chosen with the Digest size menu. MD6-256 is the default. The full specification allows any size up to 512 bits, but this page offers these four.
About this tool
MD6 was a 2008 entry in the NIST SHA-3 competition and was not chosen, and it is not the same as MD5. This page uses the standard parameters: no key, the default number of rounds for the digest size (40 plus a quarter of the digest bits), and the full tree mode with 512-byte blocks. It is written out in this page's own code and checked against published MD6 values: MD6-256 and MD6-512 of the empty string, MD6-256 of "abc", and MD6-256 of 2,000 letters a, which runs through the tree. It does not support a key, a custom round count or a custom tree height. Do not use it for anything new: stick to SHA-256 or SHA-3. The text is hashed exactly as typed, as UTF-8 (a lone surrogate half becomes U+FFFD first), so a trailing line break or a space changes the result; "Ignore one trailing line break" removes one. It hashes text, not files: a file saved with different line endings would give a different hash than the same words typed here.