SHA hash generator

Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of a text.

  • Development
  • 100% free
  • No sign-up
  • Runs in your browser
SHA hash generator

What is the sha hash generator?

The hash generator computes the SHA-1, SHA-256, SHA-384, SHA-512 and MD5 digests of a text with the browser's built-in Web Crypto API. Get them all at once, in lowercase or uppercase hexadecimal, or in Base64.

Hashes are used to verify downloads, compare files, build cache keys and sign API requests. The text never leaves your device.

How to use the sha hash generator

  1. 1Type or paste the text.
  2. 2Choose an algorithm, or All, and the output format.
  3. 3Copy the hash.

Features

Five algorithms

SHA-1, SHA-256, SHA-384, SHA-512 and MD5.

Hex or Base64

Lowercase hex, uppercase hex or Base64 output.

UTF-8

Text is hashed as UTF-8, like most programming languages do.

Private

Computed in your browser with the Web Crypto API.

Frequently asked questions

Which hash should I use?

SHA-256 is the common choice today. MD5 and SHA-1 are broken for security and only fit checksums.

Can a hash be reversed?

No. Hashes are one-way functions, although short or common inputs can be guessed with lookup tables.

Should I hash passwords with SHA-256?

No. Use a slow password hashing function such as bcrypt, scrypt or Argon2.

Why is my hash different from another tool?

Check for an extra space or line break at the end of the text, and make sure both use UTF-8.