Hash Generator

Generate SHA-1, SHA-256, and SHA-512 hashes online. Free hash generator - compute cryptographic hashes instantly.

🔒 Your text stays in your browser - nothing is sent to our servers
Input Text
Algorithm:
SHA-256 Hash
Enter text above to generate hash
How to Use

Three steps to get started

1

Enter your text

Type or paste any text into the input field. The hash updates automatically as you type.

2

Choose algorithm

Select SHA-1, SHA-256, or SHA-512. Use SHA-256 or SHA-512 for security-sensitive work. Click "Hash All" to see all results at once.

3

Copy the hash

Click "Copy" next to the hash you need. Use it for checksums, data verification, or any other purpose.

About This Tool

Cryptographic hashing explained

A cryptographic hash function maps input of any length to a fixed-length digest. Feed it one byte or a gigabyte and SHA-256 still returns 256 bits - 64 hexadecimal characters. The mapping is deterministic and one-way, and it avalanches: flipping a single input bit changes roughly half the output bits, which is why hello and hello. produce digests with nothing visibly in common.

This page computes SHA-1, SHA-256, and SHA-512 through the browser's Web Crypto API ( crypto.subtle.digest() ), the same vetted implementation your browser uses for TLS. Your text is UTF-8 encoded, hashed, and rendered as lowercase hex.

Which hash algorithm should I use?

The honest answer depends entirely on whether an attacker is in your threat model:

  • SHA-256 (64 hex chars): The sane default. It secures TLS certificates, Git object addressing in newer repositories, and Bitcoin's proof-of-work. Pick this unless you have a specific reason not to.
  • SHA-512 (128 hex chars): Same construction with 64-bit words, so on modern 64-bit CPUs it often hashes bulk data faster than SHA-256 despite the longer digest.
  • SHA-1 (40 hex chars): Cryptographically broken. Google's 2017 SHAttered attack produced two different PDFs sharing one SHA-1 digest. Use it for legacy interoperability, never to make a trust decision.
  • MD5: Deliberately not offered here. Collisions have been trivial since 2004. It survives as a non-adversarial checksum, but not for anything an attacker touches.

Do not use these to store passwords

This is the most consequential misuse of SHA hashes. The SHA family is designed to be fast - commodity hardware computes billions of SHA-256 digests per second, which is exactly what an attacker holding a stolen database wants. Password storage needs the opposite: a deliberately slow, salted, memory-hard function. Use Argon2id, bcrypt, or PBKDF2 with a high iteration count and a unique per-user salt. A bare SHA-256(password) falls to a GPU cracking rig in minutes.

What SHA hashes are good for: verifying a download against a published checksum, deduplicating content by digest, building cache keys from request parameters, and signing, where you hash the message and sign the digest rather than the whole document.

Because crypto.subtle lives in your browser, whatever you type is hashed on your own machine and never transmitted. For files, reach for a local shasum -a 256 instead - this page accepts text only.

FAQ

Frequently Asked Questions

Related Tools