Free · No sign-up · Private

Hash Generator

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

Quick answer

Type text, choose an algorithm and the hash appears instantly in hexadecimal. The same input always gives the same hash, and changing a single character changes the whole result. The SHA-256 hash of “Hello, world!” starts 315f5bdb76d078c4.

Hash GeneratorRuns in your browser
SHA-256 hash
—

Step by step

How to use the Hash Generator

01

Enter text.

02

Choose a hash algorithm.

03

See the hash digest.

Worked examples

Hash lengths

AlgorithmBitsHex charactersStatus
SHA-116040Broken for security; fine for checksums
SHA-25625664Recommended
SHA-38438496Recommended
SHA-512512128Recommended

Good to know

Checking a file download

Publishers often list a SHA-256 checksum next to a download. Comparing it with the hash of the file you received confirms it was not corrupted or altered. This tool hashes text; for files, use your operating system’s command, such as certutil or shasum.

Hashes are not for storing passwords

Fast hashes such as SHA-256 can be guessed at billions of attempts per second. Password storage needs slow, salted algorithms such as Argon2 or bcrypt.

Properties of a good hash

A cryptographic hash is deterministic (the same input always gives the same output), fast to compute, and practically impossible to reverse or to find two inputs with the same output. Even a one-letter change produces a completely different hash, the “avalanche effect”, which makes hashes useful for detecting any change to a file or message.

FAQ

Frequently asked questions

Can a hash be reversed?

No. Hashes are one-way; the only attack is guessing inputs and comparing.

Why is MD5 not offered?

The browser’s Web Crypto API does not support MD5, and it should not be used for anything security-related.