SHA-256 Hash Generator
About this tool
Compute the SHA-256 digest of any text, entirely offline in your browser. The result is a 256-bit value rendered as 64 hex characters, or as Base64 if you prefer shorter output. Because it uses the Web Crypto API, no data is transmitted.
How to use
- Type or paste your text into Input — the SHA-256 digest updates as you type.
- Switch between hex (64 characters) and Base64 (44 characters).
- Copy when you need the digest somewhere else.
Example
Input: hello SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Why SHA-256?
SHA-256 is the current default when you need a strong, universally supported digest. It is used for TLS certificates, code signing, JWT signatures, blockchain and content-addressed storage, integrity manifests, and API request signing. Its 256-bit output makes collisions infeasible with today's techniques.
FAQ
What is a SHA-256 hash?
SHA-256 is a 256-bit cryptographic hash from the SHA-2 family. It maps any input to a fixed 64-character hex digest that is stable for the same bytes.
Is SHA-256 secure?
Yes, for collision and preimage resistance at current knowledge. It is widely recommended and supported for integrity checks, signatures, and content addressing.
How long is a SHA-256 hash?
256 bits, which is 64 hexadecimal characters or 44 Base64 characters (with padding).
How do I verify a SHA-256 checksum?
Hash the exact same bytes and compare the digests. They must match character for character; this tool's Hex Checksum Verifier in the Hash Generator can compare them for you.
Is my input uploaded anywhere?
No. Hashing runs in your browser through Web Crypto. Only the last input and output format may be saved in localStorage.
Why does the SHA-256 of a file differ from the SHA-256 of its text?
File hashing covers the raw bytes of the file, while this page hashes the UTF-8 bytes of the text you type. Use the File Hash Checker for files.