Pages

Topics

Tools

↑↓navigate↵openescclose
Encoding & Security

Hash Generator

Generate SHA-1, SHA-256, SHA-384, SHA-512 and MD5 digests of text or a local file, compare them with an expected checksum, and sign with HMAC-SHA256, HMAC-SHA384 or HMAC-SHA512.

Runs entirely in your browser — nothing you paste is uploaded.

Hash reference

quick reference
32 / 40 / 64 / 128
Hex digest lengths of MD5, SHA-1, SHA-256, and SHA-512 in characters.
MD5
Fast and still common for cache keys and checksums, but broken for security use.
SHA-1
Deprecated for signatures and certificates since practical collisions were shown.
SHA-256
The default choice for checksums, content addressing, and signatures.
crypto.subtle.digest
Web Crypto API call that returns an ArrayBuffer for hashing in the browser.
HMAC
A keyed hash for message authentication; a plain hash can never prove who sent a value.

Frequently asked questions

answered below the tool
Which hash should I use for a checksum?

SHA-256. MD5 and SHA-1 remain fine for cache keys but are broken for anything security-related.

Is a hash the same as encryption?

No. A hash is one-way and cannot be reversed; a password needs a deliberately slow hash such as bcrypt or Argon2.

Why does my hash differ from the server's?

One differing byte changes everything: check for a trailing newline, a BOM or a different character encoding first.

All Go guides