Hash Generator
SHA-1, SHA-256, SHA-384, and SHA-512 — computed locally in your browser.
Input Text
Output format:
SHA-1
—
SHA-256
—
SHA-384
—
SHA-512
—
About
The Hash Generator computes cryptographic hash digests (SHA-1, SHA-256, SHA-384, SHA-512) from any text string or file using the browser's Web Crypto API. Hashes are useful for verifying file integrity, generating fingerprints, and comparing data without exposing the original content. All computation runs locally — your data never leaves your device. Output is available in both Hex and Base64 formats.
How to use
- 1 Type or paste text into the input, or drag and drop a file.
- 2 Select the hash algorithm(s) you need.
- 3 The hash value is computed instantly and shown below.
- 4 Click Copy to copy the hex digest to your clipboard.
- Which hash algorithm should I use?
- SHA-256 is the recommended general-purpose choice — it is secure, widely supported, and used by TLS certificates, code signing, and blockchain systems. SHA-512 offers a larger digest for higher-security needs. Avoid MD5 and SHA-1 for security-critical purposes as they are cryptographically broken — use them only for non-security checksums.
- Can I hash a file to verify its integrity?
- Yes. Drag and drop any file onto the upload area and the tool computes the hash of the entire file contents locally. Compare the resulting digest against the hash published by the file's author to verify the file was not tampered with or corrupted during download.
- Is hashing the same as encryption?
- No. Hashing is a one-way function — a hash digest cannot be reversed to recover the original input. Encryption is two-way and requires a key to decrypt. Use hashing for integrity checks, fingerprints, and (with a proper KDF like bcrypt) password storage. Use encryption when you need to recover the original data.