Hash Generator (MD5 / SHA)
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes of any text. Everything runs locally in your browser via the Web Crypto API — nothing is uploaded.
How to use this tool
- 1
Type or paste the text you want to hash into the input box.
- 2
Click Generate to compute the digests.
- 3
Read the SHA-1, SHA-256, SHA-384, and SHA-512 results, each shown as a lowercase hexadecimal string.
- 4
Select a hash and copy it for use as a checksum, cache key, or content identifier.
What are cryptographic hashes, and which ones does this tool produce?
A cryptographic hash function is a deterministic algorithm that turns any input into a fixed-size output called a digest. This tool computes four members of the SHA family at once: SHA-1 (160 bits, 40 hex characters), SHA-256 (256 bits, 64 hex), SHA-384 (384 bits, 96 hex), and SHA-512 (512 bits, 128 hex). It does not compute MD5 — the browser's Web Crypto API (crypto.subtle.digest) deliberately omits MD5 and other broken algorithms, so this page cannot offer it. Three properties make these functions useful: determinism (the same input always yields the same digest), the avalanche effect (flipping one input bit changes about half the output bits), and one-wayness (you cannot reverse a digest to recover the input). SHA-1 is included for compatibility with legacy systems and Git object IDs, but it has a known collision attack (2017) and should not be used to defend against a deliberate attacker; prefer SHA-256 or SHA-512 for new security work. The tool encodes your text as UTF-8 before hashing, so its output is byte-identical to OpenSSL, Python's hashlib, and Node's crypto for the same UTF-8 bytes.
Common use cases
Verify a downloaded file's text manifest or release notes match a publisher's listed SHA-256.
Compute the SHA-256 of a config string to use as a stable, content-addressable cache key.
Generate a SHA-256 fingerprint of a JSON payload to detect whether two records are identical.
Reproduce a Git-style SHA-1 object identifier while learning how content addressing works.
Confirm that two copies of a code snippet or certificate are bit-for-bit the same by comparing digests.
Produce a SHA-512 digest of a message to paste into a documentation example or test fixture.
Frequently asked questions
Does this tool support MD5?▼
Is SHA-1 safe to use here?▼
Can these hashes be reversed?▼
Why does my hash differ from another tool's result?▼
Does this hash files, or only text?▼
Is my input uploaded anywhere?▼
When should I pick SHA-512 over SHA-256?▼
Related tools
JWT Decoder
Decode JSON Web Tokens (JWT) instantly — inspect the header, payload, and signature claims. Runs entirely in your browser; tokens never leave your device. Safe for production secrets.
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Catches syntax errors with line numbers, pretty-prints with adjustable indent, supports large payloads. Runs in your browser — no upload.
XML Formatter & Beautifier
Format and beautify XML documents — proper indentation, line breaks, namespace handling. Useful for SOAP responses, sitemaps, RSS feeds, and Android resource files.
Base64 Encoder & Decoder
Encode and decode Base64 strings.
URL Encoder & Decoder
Encode/decode URL-safe strings.
HTML Entity Encoder & Decoder
Convert special characters to/from HTML entities.