Hash Generator
Calculate a SHA digest for text in your browser.
Show detailsHide details
Choose a SHA algorithm and enter text to produce a digest with Web Crypto. A digest is not encryption, and it is not a suitable way to store passwords.
Loading calculator...
What does a hash generator do?
It applies a selected hash algorithm to the exact input text and displays the resulting fixed-length digest.
A digest is not encryption, proof of identity, or a password-storage method.
Generate a text digest
What a Cryptographic Digest Can Tell You
A cryptographic hash function maps input data to a fixed-size digest. A small input change should produce a different digest, which makes hashes useful for comparing data when both the expected digest and the source are obtained through a trustworthy process. SHA-256, SHA-384, and SHA-512 are members of the SHA-2 family and are common for integrity workflows. This browser tool hashes text exactly as entered; it does not hash a selected file, authenticate a publisher, or prove that a download is safe. SHA-1 is included only for legacy comparisons and should not be selected for new security-sensitive designs. Developers and learners can use the result to understand digest behavior, but password storage requires a purpose-built password-hashing scheme.
Key Features
💡 Pro Tips
- →Hash the exact bytes expected by the receiving system; whitespace, line endings, and character encoding change the digest.
- →For a file checksum, use a workflow that hashes the actual file bytes and compare against a digest from an authenticated source.
Common Mistakes
Treating a matching digest as proof that a file is trustworthy
A checksum only helps detect changes when the reference digest itself comes from a trusted source; it does not establish who created the file.
Using a fast SHA hash for password storage
Fast general-purpose hashes allow high-volume guessing; password verification should use a salted, deliberately slow password-hashing scheme.
Last updated: 2026-10-27
Table of Contents
Quick Facts
Related Tools
Privacy Guaranteed
Your data never leaves your browser. All calculations are 100% private.
Frequently Asked Questions
Does a hash encrypt my text?
No. A digest is a fixed-length output, not reversible encryption. It does not conceal or securely store the original input.
Can I use this to store passwords?
No. Password storage requires a dedicated, slow password-hashing scheme with salts, such as Argon2id, scrypt, or an appropriately configured bcrypt/PBKDF2 implementation.
Which hash should I use for a checksum?
SHA-256 or a stronger SHA-2 digest is a common choice for integrity checks. Follow the software or service's documented algorithm and obtain the reference digest through a trusted channel.
Can this tool create a hash for a file?
No. It hashes text entered in the page. A file checksum requires hashing the file's actual bytes.