How it works
Whatever is in the text box is turned into bytes with TextEncoder, so every digest is over UTF-8: the same bytes a UTF-8 file or a charset=utf-8 request body would hash to. The counter under the box shows both views of the input: characters are counted as Unicode code points, so an emoji is one, and bytes are counted after encoding, so é is two. Whitespace is not trimmed; a single space has a digest of its own. Every keystroke recomputes all five digests, and a request counter discards any result that lands after the text has moved on, so fast typing never leaves a stale hash on screen.
SHA-1, SHA-256, SHA-384 and SHA-512 come from the browser’s own Web Crypto implementation through crypto.subtle.digest — native code, the same the browser uses for TLS. MD5 is not part of Web Crypto, so the page carries a port of RFC 1321 that works on the byte array directly, padding the final block and spilling into a second one when fewer than eight bytes are free; it is checked against the RFC’s own test suite. Each digest is shown twice, as lowercase hex and as standard Base64 with padding, each with its own copy button, in the order MD5, SHA-1, SHA-256, SHA-384, SHA-512.
Typing anything into the key field switches every algorithm to its HMAC. The key is encoded as UTF-8 bytes like the text. For the SHA family it is imported as a raw HMAC key and the value comes from crypto.subtle.sign, while HMAC-MD5 is built in the page from the RFC 2104 construction: the key padded to the 64-byte block, or hashed first when it is longer, then XORed with 0x36 and 0x5c for the inner and outer passes. The labels change to HMAC-MD5 and so on and the heading reads All HMACs; clearing the key returns to plain digests.