Developer tool

Hash Generator

Calculate SHA-256, SHA-384, or SHA-512 hashes for text and local files.

Practical guide

How to use Hash Generator

Hash Generator calculates SHA-256, SHA-384, or SHA-512 digests for text and local files. Digests help compare files, check transfer integrity, and reproduce values supplied by a trusted publisher.

Step by step

  1. Enter text or select one local file.
  2. Choose the expected SHA algorithm.
  3. Calculate the hexadecimal digest and compare every character with the trusted reference.

Example

InputSHA-256 of: hello
Result2cf24dba5fb0a30e…938b9824

How it works

The browser's Web Crypto API reads the input bytes and calculates a one-way cryptographic digest. The hexadecimal output is a representation of that digest, not the original content.

Important limitations

  • A matching hash proves byte equality only when the reference hash itself is trusted.
  • General hashes are not a safe replacement for a password-hashing scheme such as Argon2, scrypt, or bcrypt.

Frequently asked questions

Can a SHA hash be reversed?

There is no direct reversal operation, but weak or predictable inputs can still be guessed and compared.

Why does the same-looking text have a different hash?

Encoding, line endings, invisible whitespace, and Unicode normalization can change the underlying bytes.