Genesis Forge
Genesis Forge › Free tools › Developer tools

Hash generator

Compute SHA-256, SHA-1, SHA-384 and SHA-512 hashes of text in your browser with the Web Crypto API.

Runs in your browser. Nothing you enter is uploaded.

What it does

A hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, and a tiny change gives a completely different one. Hashes are used to check that a file or message has not changed.

How to use it

  1. Type or paste the text.
  2. The four hashes update as you type.
  3. Copy the one you need, or download all of them.

Worked example

The SHA-256 hash of hello is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824.

How it works

The text is converted to UTF-8 bytes and passed to the browser’s built-in crypto.subtle.digest(). The result is shown in hexadecimal. A trailing space or line break changes the hash, so be careful when comparing.

Questions

Why is there no MD5?

The Web Crypto API does not provide MD5, and MD5 is broken for security purposes. SHA-256 is the usual choice today.

Is SHA-1 still safe?

Not for security. Practical collisions exist. It is included for checking old checksums.

Can I hash a password with this to store it?

No. Passwords need a slow, salted algorithm made for the purpose, such as bcrypt, scrypt or Argon2. A plain SHA hash is too fast to resist guessing.

Can a hash be reversed?

Not by calculation. Short or common inputs can be found by guessing, which is why plain hashes do not protect passwords.

Related tools

All free tools →