SHA-256 Hash Generator
Generate SHA-256, SHA-1, or MD5 hashes for text and files. Verify file integrity without uploading anything. Your files stay on your device.
SHA-256 produces a 64-character hex digest; SHA-1 and MD5 are offered for verifying legacy checksums only. To verify a download, compare your computed digest against the one the publisher published.
Tool workspace
Mode
Hash Algorithm
Input
Ctrl+Enter to execute · Esc to clear
No result yet
Enter your input above and the result will appear here.
What is SHA-256?
Read the details +
SHA-256 (Secure Hash Algorithm 256-bit) is a cryptographic hash function that produces a fixed-size 256-bit (32-byte) hash value from any input data. It is part of the SHA-2 family designed by the National Security Agency (NSA) and published by NIST in 2001.
Technical Principles
SHA-256 operates using the Merkle-Damgård construction with the following key characteristics:
- One-way function: Computationally infeasible to reverse the hash back to original data
- Avalanche effect: A single bit change in input produces a completely different hash
- Collision resistance: Extremely difficult to find two different inputs with the same hash
- Deterministic: Same input always produces identical output
The algorithm processes data in 512-bit blocks through 64 rounds of operations including bitwise operations, modular additions, and compression functions. Each round uses a unique constant derived from the fractional parts of cube roots of prime numbers.
Reference: a real run, the parameters, and the failure modes
Worked example
SHA-256 of the five bytes h-e-l-l-o
Input
helloOutput
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824How to verify: Run `printf %s hello | sha256sum` on Linux or `printf %s hello | shasum -a 256` on macOS. The digest must match exactly. In the Expected hash field, whitespace is ignored and case does not matter; remove a 0x prefix or colons before pasting.
Parameters
| Parameter | Value | Default | Bound |
|---|---|---|---|
| Algorithm | SHA-256, SHA-1 or MD5 | SHA-256 | 256, 160 or 128-bit digest |
| Text input | UTF-8 bytes | — | Live hashing up to 10 KB; larger text needs Generate |
| File input | Any file type, read in the tab | — | 50 MB per file |
| Output | Lowercase hex | — | 64, 40 or 32 hex characters |
| Expected value | Hex with optional whitespace | — | Compared after removing whitespace and lowercasing; colons and 0x are not stripped |
| Batch | Several files plus a pasted .sum list | Off | Each file gets pass, fail or missing |
Failure checklist
| Symptom | Likely cause | What to do |
|---|---|---|
| The same text hashes differently in another tool. | The other tool hashed different bytes: a trailing newline, CRLF instead of LF, or another encoding. | Hash the exact bytes; use printf %s instead of echo and compare the input length. |
| The expected hash never matches. | The pasted value still contains the filename from a .sum line, a 0x prefix, colons, or invisible whitespace. | Paste only the digest; the page strips whitespace and ignores case, but colons and 0x must be removed. |
| A large file is refused. | The page enforces a 50 MB ceiling per file. | Use the CLI command shown on the page for larger files, or split the archive. |
| MD5 or SHA-1 is rejected downstream. | Both are legacy: MD5 is not collision-resistant and SHA-1 is deprecated. | Use SHA-256 for new integrity checks. |
How to Generate a Secure Hash Online
Learn how to generate SHA-256, SHA-1, or MD5 hashes from text or files using a client-side tool.
- 1
Enter text or select a file
Type any text in the input box, or click "Choose File" to select a document.
- 2
Select hash algorithm
Choose SHA-256 (recommended), SHA-1, or MD5 based on your security needs.
- 3
Click "Generate Hash"
The tool computes the hash using your browser's Web Crypto API — no data leaves your device.
- 4
Copy the result
Click the copy button to use the hash in your application or verification process.
Security Tips
- Always use SHA-256 for security-critical applications—avoid MD5 and SHA-1
- Compare checksums from trusted sources, not from the same download page
- For software distribution, publish checksums on multiple channels (website, GitHub, email)
- Remember: hash verification confirms integrity, not authenticity—use signatures for that
Frequently Asked Questions
Which hash algorithms are supported?
SHA-256, SHA-1, and MD5 for both text and files. SHA-256 is recommended for integrity checks.
Are my files uploaded when hashing?
No. Files are read and processed locally in your browser, so checksums are computed without any upload.
When should I use a hash checker?
Use it to verify downloaded files such as Linux ISOs or release archives: compare the computed checksum with the official value to confirm the file is intact.
Is SHA-256 hashing the same as encoding?
No. Encoding (like Base64 or URL encoding) is reversible: it changes how data is represented so it can be transmitted or stored, and anyone can decode it back. Hashing is a one-way function: SHA-256 produces a fixed 256-bit digest that cannot be reversed to the original input. A SHA-256 checksum is not an encoded version of your file—it is a fingerprint used to verify integrity. This tool computes hashes only; for reversible encoding use our Base64/URL/Hex encoder.
Can I verify a whole list of files at once?
Yes. In batch mode, drop several files and compare them against a pasted list of expected SHA-256, SHA-1, or MD5 values. Each file gets a pass, fail, or missing status, and the results can be exported as a checksum file for later audits.
Encryption background on zeyrovault.com
You are responsible for key management and output validation.