Hash Generator

Compute SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text in your browser.

Related Tools

0 comments

How it works

Input text is encoded to UTF-8 with TextEncoder, then passed to crypto.subtle.digest() — the browser's native, hardware-accelerated cryptographic hash implementation. The resulting bytes are formatted as a lowercase hexadecimal string. SHA-1 is included for legacy compatibility but should not be used for security-sensitive applications. SHA-256 is the modern default. MD5 is intentionally not supported because the Web Crypto API does not expose it (it has been broken since 2004).

Common use cases

  • Verifying a downloaded file against a published checksum (paste the file content via copy).
  • Generating deterministic identifiers from a normalised string.
  • Quickly checksumming a config snippet to detect drift between environments.

Frequently asked questions

Why no MD5?

The Web Crypto API does not include MD5. MD5 is cryptographically broken and should not be used for new work.

Why no file upload?

This tool hashes text. For files, browsers can read them via FileReader — that may be added later, but for now copy the file contents into the textarea.

Are hashes case-sensitive?

Hash values themselves are lowercase hex. The input text matters bit-for-bit — changing one letter's case produces a completely different hash.

Is the input sent to a server?

No. crypto.subtle runs locally and the input never leaves your browser.