Skip to content
Codoryn Search tools

Hash Generator

Generate SHA-256, SHA-384 and SHA-512 digests from UTF-8 text, entirely inside your browser.

A hash is not encryption

A cryptographic hash is a one-way function. It turns any amount of input into a fixed-size digest, and there is no operation that turns the digest back into the input. Nothing here can be "decrypted", because nothing was encrypted.

What a digest gives you is a fingerprint: the same bytes always produce the same digest, and finding two different inputs with the same digest is computationally infeasible for SHA-2. That makes hashes useful for integrity checks, deduplication, cache keys and content addressing.

Do not use this for password storage

This is worth being blunt about. A plain SHA-256 of a password is not safe password storage, and no configuration of this tool makes it so.

SHA-2 is designed to be fast, and speed is exactly the wrong property here: it lets an attacker who steals your database try billions of candidate passwords per second on commodity hardware. Passwords need a deliberately slow, salted, memory-hard key derivation function — Argon2id, scrypt, or bcrypt — with per-user salts and tuned cost parameters.

Codoryn does not offer a password-hashing tool, because doing it correctly is a property of your server-side authentication system rather than something a browser page should produce for you.

How to use it

  1. Type or paste text, or press Sample.
  2. Pick an algorithm — SHA-256 is the sensible default.
  3. Choose hex (what most tools print) or Base64 (compact, and what many APIs expect).
  4. Press Generate hash or Ctrl/Cmd + Enter, then copy or download the digest.

Exactly what gets hashed

Your text is encoded as UTF-8 and those bytes are hashed. Nothing else happens to it.

In particular, Codoryn does not apply Unicode normalisation. Two strings that look identical can have different byte sequences — é as one code point versus e plus a combining accent — and they will produce different digests here. That is correct: normalising would make Codoryn disagree with every other implementation you compare against.

Trailing newlines count too. A file hashed with sha256sum usually includes the final newline; text pasted here does not unless you paste it.

Which algorithms, and why not MD5 or SHA-1

v1 offers SHA-256, SHA-384 and SHA-512 — the SHA-2 family, all currently considered secure for integrity purposes.

MD5 and SHA-1 are deliberately not offered. Both have practical collision attacks: two different inputs can be constructed that share a digest, which destroys the one property that makes a hash useful for verification. They still appear in legacy checksums, but a tool that offers them alongside SHA-2 implies a choice where there is not one.

Frequently asked questions

Can I hash a file?

Not in this version. File hashing needs its own handling for streaming, progress and memory, and its own privacy statement — so it is deliberately out of scope here rather than half-implemented.

Is my text sent anywhere?

No. Hashing runs in a Web Worker in your browser using the browser's built-in Web Crypto implementation, and this tool does not send the text or the digest over the network.

Why does an empty input still produce a digest?

Because the empty byte sequence has a perfectly well-defined hash — e3b0c442… for SHA-256. It is a real answer, not an error.

How much text can I hash?

Up to 5 MB. Larger input is refused rather than risking an unresponsive tab.

Send output to