Hash Generator

Calculate text and file hashes locally with clear algorithm guidance.

Generate a digest for text or a file.

The file is buffered in browser memory before Web Crypto hashes it. Do not use plain SHA alone for password storage.

How to use it

A clear, quick workflow

  1. Choose text or file mode and select SHA-256, SHA-384, or SHA-512.
  2. Enter text exactly as it should be hashed, or choose a local file up to 20 MiB.
  3. Generate and copy the lowercase hexadecimal digest for comparison.

Example

The SHA-256 digest of the exact ASCII text abc begins ba7816bf and contains 64 hexadecimal characters.

Limits and behavior

Text is UTF-8 encoded exactly as entered: whitespace, case, and line endings matter, and empty text is valid. Files up to 20 MiB are buffered in browser memory before hashing. SHA digests can check integrity but plain SHA alone is not suitable for storing passwords; use a dedicated salted password-hashing scheme for that purpose.

FAQ

Why does one extra space change the entire digest?

A cryptographic hash depends on every input byte. The tool intentionally does not trim, normalize, or change your text.

Practical guidance

Choose and use this tool with confidence

Hashing is not encryption

A digest is a fixed-length fingerprint used for comparison; there is no key and no decrypt operation. Matching digests can support an integrity check, but they do not prove who created a file or protect its contents from being read.

  • Compare against a digest obtained through a trusted channel; a checksum beside a tampered download can be replaced too.
  • SHA-256, SHA-384, and SHA-512 are fast general-purpose hashes, not standalone password-storage schemes.

Text hash or file hash?

Text mode hashes the exact UTF-8 bytes of what you type, including spaces and line endings. File mode hashes the selected file bytes without interpreting the format. Two visually similar inputs can therefore produce different digests.

Need a new secret? Open Password Generator