Skip to content

Generate a SHA-256 hash

Calculate a text's SHA-256 hash using the browser's Web Crypto API.

Processed on your device. Nothing is sent to any server.

Calculate any text's SHA-256 hash using the browser's native Web Crypto API, the same cryptographic implementation serious web applications use.

A hash is a one-way function: it turns any input into a fixed-length output, and it's practically impossible to reconstruct the original text from the hash. A hash is NOT the same as encryption: encryption is reversible with the right key, a hash never is.

Use cases

  • Verifying the integrity of a file or text.
  • Generating a unique, reproducible identifier from content.
  • Comparing whether two texts are identical without revealing their content.

How it works

  1. 1

    Type your text

    Type or paste the text you want to hash.

  2. 2

    Generate the hash

    Click Generate hash and copy the hexadecimal result.

Frequently asked questions

Is SHA-256 suitable for storing passwords?
Not directly: for passwords, dedicated functions like bcrypt or Argon2 are recommended, which include a salt and are deliberately slow to make brute-force attacks harder.
Developer