119 · Security Tools

SHA-256 Hash Generator

Type text to get its SHA-256 hash instantly. Add a secret key to create an HMAC signature.

SHA-256 Hash Generator

How to use the sha-256 hash generator

  1. Type or paste text.
  2. Choose hex or Base64 output.
  3. Optionally enter a secret key for HMAC-SHA256.

SHA-256 vs HMAC

A SHA-256 hash is a 256-bit fingerprint: change one character and the hash changes completely, and you can’t reverse it to get the text back. HMAC combines the hash with a secret key, so only someone with the key can produce the same signature. Webhooks and APIs use it to prove a message is genuine.

Don’t store passwords as plain SHA-256 hashes. Use a slow password hash such as bcrypt or Argon2.

Examples

hello world

b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

Empty text

e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

Questions

How do I hash a file?

This tool hashes text. The <a href="/tools/hash-generator/">hash generator</a> also does SHA-1 and MD5 for text.

Is my data uploaded?

No. Everything runs in your browser, so what you paste never leaves your device.