#

Hash Generator

Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes in your browser instantly.

0 bytes · 0 chars

🔒 All hashing happens locally using the browser's SubtleCrypto API.

SHA-1160 bitsDeprecated for security use

Enter text above to compute the SHA-1 hash.

SHA-256256 bitsRecommended

Enter text above to compute the SHA-256 hash.

SHA-384384 bitsStrong

Enter text above to compute the SHA-384 hash.

SHA-512512 bitsVery strong

Enter text above to compute the SHA-512 hash.

About this tool

Last updated:

Generate SHA hashes from text

This hash generator turns any text into SHA-1, SHA-256, SHA-384 and SHA-512 hashes. All four are shown at once and update as you type. Each one can be copied with a single click.

How to use it

  1. Type or paste your text into the Input Text box.
  2. Wait a moment. The hashes appear after a short delay of about 120 ms.
  3. Tick Uppercase if you want the hex in capital letters.
  4. Click Copy next to the hash you need.

How it works

The text is converted to UTF-8 bytes and hashed with the browser's built-in Web Crypto API (crypto.subtle.digest). The result is written as hexadecimal. The counter above the box shows the number of bytes and characters in your input.

What you see

AlgorithmLengthNote shown in the tool
SHA-1160 bits (40 hex characters)Deprecated for security use
SHA-256256 bits (64 hex characters)Recommended
SHA-384384 bits (96 hex characters)Strong
SHA-512512 bits (128 hex characters)Very strong

Assumptions and limits

  • Only text input is supported. You cannot hash a file.
  • MD5 is not offered, and there is no HMAC or salt option.
  • Web Crypto needs a secure context. On a page without HTTPS or localhost, the tool shows an error message instead of hashes.
  • The text is hashed on your device. The code makes no network request with it.
  • A plain hash is not a safe way to store passwords. Use a slow, salted algorithm such as bcrypt for that.

Frequently asked questions

Why is the same text giving a different hash elsewhere?

Check for extra spaces or line breaks, since they change the result. The tool hashes the text exactly as typed, encoded as UTF-8.

Does the Uppercase option change the hash?

No. It only changes how the same hex value is written, and the copy button uses the same case.

Which algorithm should I pick?

SHA-256 is the one the tool recommends and is the usual choice for checksums. SHA-1 is only for matching old systems.

More to explore

Related Developer Tools

Browse all tools from the same category.

Showing 1-2 of 49