SHA-256 Generator

Compute SHA-256 online, backed by Web Crypto

Runs in your browserUtility03Encoding & Crypto

What is SHA-256 Generator?

This SHA-256 generator produces a 256-bit digest (64 hexadecimal characters) for any text input using the browser native Web Crypto API. It is the recommended general-purpose hash today, suitable for integrity verification and for the hashing step of a signature scheme. All computation happens locally.

How to use SHA-256 Generator

  1. 1Type or paste your text and the digest is generated instantly.
  2. 2Toggle between uppercase and lowercase output.
  3. 3Compare the result character by character against the officially published checksum.

How do I do this in code?

Use the tool above for one-off work; for anything you repeat, move it into a script or your project.

const sha256 = async (text) => {
  const buf = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(text));
  return [...new Uint8Array(buf)].map((b) => b.toString(16).padStart(2, '0')).join('');
};

Frequently asked questions

Should I use SHA-256 or SHA-512?+

SHA-256 is the right default: its security margin is more than sufficient and the digest is shorter. SHA-512 can be faster on 64-bit platforms, which helps when hashing large volumes of data. Both belong to the SHA-2 family and neither has a known practical attack.

Why do release checksums use SHA-256?+

Because SHA-256 resists collision construction: an attacker cannot craft a malicious package whose digest matches the official one. That is why open source release pages now publish SHA-256 checksums instead of MD5.

Related tools

All tools