Browser cryptography

SHA-2 Hash Generator

Create a deterministic SHA-256, SHA-384, or SHA-512 digest from text using the built-in Web Crypto API.

Hash text in this tab

Do not use this tool to store or protect passwords.

Enter text to create a digest.

What a digest can tell you

If two files are expected to be identical, matching digests are a compact consistency signal. A digest alone does not prove who created a file, that it is safe, or that a website is authentic. Get the expected digest from a source you trust and use a signature or authenticated channel when provenance matters.

This page loads only the site's own stylesheet and JavaScript. It does not encrypt or recover the original text from a digest.

Common questions

Does the tool send my text anywhere?

No. It uses Web Crypto in the browser and does not send the input to an API or save it on the page. This page loads no advertising or consent scripts.

Can I decrypt the digest?

No. A cryptographic hash is designed to be one-way. You can compare it with an expected value, but you cannot recover the input from the digest alone.

Is SHA-256 safe for passwords?

No. Use a dedicated password-hashing scheme with a unique salt and a deliberately expensive work factor. General-purpose hashes are too fast.

Checked November 17, 2026. Read how we test or send a correction through the contact page.