Hash Generator

Calculate a SHA digest for text in your browser.

Show 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

1
Choose a digest algorithm.
2
Enter or paste the text.
3
Generate and copy the hexadecimal result.
4
Use the output only for an appropriate checksum or comparison task.

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

SHA-256, SHA-384, and SHA-512
Web Crypto API implementation
Local text processing
Explicit warning for legacy SHA-1

💡 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.

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.