About the SHA256 Generator
This tool computes SHA-256 hashes and the related SHA algorithms (SHA-1, SHA-384, SHA-512) for text or files. You can choose hex or Base64 output and paste an expected checksum to compare with the computed digest. The code runs in your browser using the Web Crypto API, so your data stays on your device and nothing is uploaded to our servers. Use it to check downloaded files, confirm copied text, or compare vendor checksums. The tool is free and works without installing software. For formal federal or certified use, consult NIST FIPS 180-4 and use a FIPS-validated module; this tool is a convenience utility, not a certified cryptographic module. See NIST FIPS 180-4 and the Web Crypto API docs for the standards behind the hashes.
How to use it
- 1Paste text or choose a file to hash
- 2Select algorithm: SHA-1, SHA-256, SHA-384 or SHA-512
- 3Pick output format: hex or Base64
- 4Click Hash to compute
- 5Paste an expected checksum to compare results
Worked example
Input text: hello Algorithm: SHA-256 Output (hex): 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
How it works
Makes SHA-256 hashes (and SHA-1, SHA-384, SHA-512) of text or a file with the browser's Web Crypto API, in hex or Base64, and compares the result with a hash you pasteWorks in the browser with nothing to installSource: NIST FIPS 180-4 Secure Hash Standard (SHS)MDN Web Crypto API. Last checked 5 November 2026.
What it is good for
- Runs entirely in your browser; no uploads
- Supports SHA-1, SHA-256, SHA-384, SHA-512 and hex or Base64 outputs
- Quickly compare a pasted checksum and see match or mismatch
- Does not provide HMAC or keyed MAC functions
- Not a FIPS-validated cryptographic module for federal certification
Questions people ask
What is SHA-256?
SHA-256 is a cryptographic hash that outputs 32 bytes or 64 hex characters. It is part of the SHA-2 family defined in NIST FIPS 180-4 and is used for integrity checks and signatures.
Can I reverse a SHA-256 hash to get the original text?
No. SHA-256 is one-way, so you cannot reliably recover the original input from a digest. You can only try guesses or use precomputed tables for common values, which is not guaranteed to find the input.
Do spaces or line endings change the SHA-256 result?
Yes. Any byte difference, including spaces or CRLF versus LF, changes the hash. Make sure your input encoding and line endings match the source you are checking.
Is this tool safe for private data?
The tool runs in your browser using the Web Crypto API and does not upload your input to our servers. For highly sensitive or regulated data, use vetted, validated software and follow your local compliance rules.
What encoding should I use for text input?
Text is treated as bytes before hashing and most browsers use UTF-8 by default. If you paste hex or Base64, choose the corresponding decode option so the tool hashes the raw bytes you intend.
How do I verify a downloaded file?
Compute the file's SHA-256 with this tool and compare it to the vendor's published checksum. Compare values case-insensitively for hex and ensure you hash the exact file bytes to avoid false mismatches.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.