BrowserLeaksUSBrowserLeaksUS

Hash Generator

Generate SHA-1, SHA-256, SHA-384, SHA-512 hashes - Web Crypto API, fully client-side

Hash Generator

What this tool does

Generates SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic hashes for any text input. Runs entirely in your browser via the Web Crypto API - your data never leaves your device.

Who it's for: Developers verifying file integrity, security engineers computing checksums, and anyone comparing hashes from signed downloads.

When to use

  • •Verify that a downloaded file matches the publisher's advertised SHA-256 hash.
  • •Produce a stable fingerprint of a string for deduplication or caching keys.
  • •Generate hashes for password storage (combined with a proper KDF like bcrypt or Argon2).
  • •Compare two strings by hash to detect tampering.

How it works

  1. 1Type or paste text into the input box.
  2. 2All 4 hashes are computed locally by the Web Crypto API.
  3. 3Results display as hex strings - click Copy to use them.
  4. 4Nothing is sent to any server; close the tab and the data is gone.

Tips

  • •SHA-1 is cryptographically broken - use it only for non-security checksums.
  • •For password hashing, use bcrypt/scrypt/Argon2, NOT plain SHA.
  • •The same input always produces the same hash - tiny changes produce wildly different outputs.

Using this result

How to read a hash result

01

The digest is not the input

Each algorithm prints a fixed-length digest of the text or file you provided. SHA-256 is 64 hex characters. SHA-1 is 40. MD5 is 32. The same input always produces the same digest for a given algorithm, and a one-byte change produces a digest that looks unrelated. You cannot reverse the box to recover the input. That is the difference between this page and Base64.

Hex is the long form with digits 0-9 and letters a-f. Base64 of a digest is shorter and uses a different alphabet. Compare like with like. A checksum published as hex will never equal the Base64 line. Letter case does not change the value, but a publisher may print uppercase. Normalize case before you call a mismatch. Whitespace is part of the input. A trailing newline that you cannot see will change the digest. If a published checksum does not match, re-hash the raw file rather than a copy you pasted through chat.

02

Which algorithm to trust

MD5 and SHA-1 are fine for accidental corruption checks and unsafe for security. A motivated attacker can produce a different file with the same MD5. Use SHA-256 or SHA-512 when the digest is standing in for integrity against another person, such as a download. The file control hashes the bytes locally. The filename is not part of the digest unless you typed it into the text box yourself.

A hash of a password is still a secret if it was produced without a slow password hash. This page uses fast checksums, not bcrypt or scrypt. Do not publish a password digest from here and assume it cannot be cracked. For tokens that are signed rather than merely digested, move to the JWT Decoder and look at the algorithm in the header.