Skip to main content

Hash Generator

Type or paste any text and read its cryptographic hash — the fixed-length fingerprint that identifies those exact bytes. Developers use hashes to verify downloads, key caches, and compare data without sharing it.

Private by construction: hashing runs entirely in your browser — the SHA family via your device's Web Crypto, MD5 via code on this page. Your text is never uploaded, sent, or logged; the page works the same with the network unplugged after loading.

Algorithm

SHA-256 hash

Hashing…

Computed in your browser via Web Crypto

Embed this calculator on your website →

The formula

hash = digest(text as UTF-8 bytes), shown as hex

  • bytes, not characters — the text is hashed as UTF-8 bytes, so accents and emoji hash the same here as in Python, OpenSSL, and every standard tool.
  • one-way — a hash cannot be "unhashed" back into the text; it only proves that two texts were byte-identical.
  • MD5's warning is load- bearing — MD5 is included only for legacy checksums and is flagged insecure on the tool itself: broken collision resistance means it must never guard passwords, signatures, or anything adversarial.

Worked example: abc → SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad — the standard test vector, and the tool's empty default for the classic sentence above.

How it works

Why the same text always gives the same hash. A hash function is deterministic: identical input bytes, identical output, on every device and in every tool. That is what makes hashes comparable — a publisher's SHA-256 and yours either match byte-for-byte or the content differs.

Why length is fixed. SHA-256 always produces 64 hex characters whether the input is empty or a novel — the function compresses arbitrary input into a fixed-size digest. Longer inputs do not make longer hashes; they just take slightly longer to process.

When to reach for which algorithm. SHA-256 is the everyday default; SHA-384 and SHA-512 are its stronger siblings for conservative requirements. MD5 exists here for one job: checking checksums published in the MD5 era — and the tool says so every time you select it.

Examples

  • Empty text → SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 — the well-known empty digest.
  • Verifying a snippet → hash a config block before and after copying it between machines; equal hashes mean nothing changed.
  • An old MD5 checksum → select MD5, paste the text, compare — with the insecure-for-security warning read first.

Frequently asked questions

Can a hash be reversed to reveal my text?

No — hash functions are one-way. The only way to 'reverse' one is to guess inputs until a hash matches, which is infeasible for anything but tiny or guessable texts. That is also why you should never hash a password with plain SHA-256 — password storage needs a dedicated slow function, a different job entirely.

Why is MD5 offered at all if it is insecure?

Because the world still publishes MD5 checksums for old files, and checking one is a legitimate, non-security use. The tool labels it legacy and insecure every time it is selected, implements it locally (no new dependency), and verifies it against the RFC 1321 test vectors — included with guardrails, not quietly.

Do emoji and accents hash consistently with other tools?

Yes — the text is encoded as UTF-8 before hashing, the same bytes Python's hashlib, OpenSSL, and sha256sum use. 'café' hashes identically here and in those tools, which would not be true if the page hashed UTF-16 code units.

How is this different from the File Integrity Checker?

That page hashes files from your device; this one hashes typed or pasted text. Same algorithms, same in-browser privacy — different input. If you need to hash a file, use the checker; for a string, stay here.