Skip to content

SHA-256 Hash Generator

Get the SHA-256 hash of any text as you type, or drop a file to compute its SHA-256 checksum, and paste a published value to confirm the download is intact.

100% Free • No Signup • Zero Uploads (Runs Locally)

100% Local Browser Execution • Zero Server Uploads • Air-Gap Safe

100% Local Tool Execution • Tool Inputs Never Leave Your Browser WebCrypto SubtleCrypto + JS MD5/CRC32

    CtrlEnter to copy output

    Wrong result, broken layout or an idea? Tell us about this tool.

    SHA-256 Hash Generator SHA-256, MD5 and NTLM Hash Pipeline & Security Architecture Banner

    This hash generator computes SHA-256, SHA-384, SHA-512, SHA-1, MD5, CRC32, NTLM, HMAC-SHA256 and bcrypt for any text, and file checksums for files of any type, entirely in your browser. SHA hashes come from the Web Crypto API (crypto.subtle.digest), MD5 and CRC32 stream through the file in 8 MB slices, and bcrypt loads only when you select it. Paste a published checksum to verify a download, or compare a hash from a threat report against a sample, without uploading either.

    How do you generate a SHA-256 hash?

    Type or paste the text: the UTF-8 bytes go through crypto.subtle.digest('SHA-256') and the 64-hex-character digest appears instantly. Changing one character changes the whole hash.

    The text is hashed exactly as entered, including trailing spaces and line breaks. echo "abc" | sha256sum hashes "abc" plus a newline, so use printf %s "abc" | sha256sum to match this tool.

    How do you get the SHA-256 checksum of a file?

    Switch to File checksum and drop the file; it is read locally and hashed with WebCrypto, then you can paste the vendor's checksum to compare.

    This replaces sha256sum file, shasum -a 256 file and Get-FileHash file when you are on a locked-down machine or do not want to upload a sensitive file to an online checker. Files up to about 2 GB fit in browser memory for the SHA digest.

    Also searched as: sha256 online, sha256 checksum, sha-256 generator.

    How do you verify a file checksum?

    Hash the downloaded file with the same algorithm the publisher used, usually SHA-256, and compare the result with the published value; a single changed byte produces a completely different hash.

    Drop the file in the File checksum tab and paste the vendor's value into the compare box. The tool highlights the matching algorithm, or tells you which algorithm a non-matching value looks like based on its length: 32 hex characters for MD5, 40 for SHA-1, 64 for SHA-256 and 128 for SHA-512. A matching checksum proves the file is intact; it proves authenticity only if you got the checksum from a trusted channel, ideally a signed release page.

    From a terminal the same check is sha256sum file.iso on Linux, shasum -a 256 file.iso on macOS and Get-FileHash file.iso -Algorithm SHA256 in PowerShell.

    How it works: Hash & Checksum Generator

    SHA-256 Hash Generator SHA-256, MD5 and NTLM Hash Pipeline & Security Architecture Diagram. Local hashing pipeline: text is UTF-8 encoded and files are read in 8 MB File.slice chunks, SHA-1, SHA-256, SHA-384 and SHA-512 run through crypto.subtle.digest, MD5 and CRC32 stream through pure JavaScript, HMAC uses crypto.subtle.sign with the secret key, and the hex digest is compared against an expected checksum without any upload.
    Local hashing pipeline: text is UTF-8 encoded and files are read in 8 MB File.slice chunks, SHA-1, SHA-256, SHA-384 and SHA-512 run through crypto.subtle.digest, MD5 and CRC32 stream through pure JavaScript, HMAC uses crypto.subtle.sign with the secret key, and the hex digest is compared against an expected checksum without any upload.

    How does SHA-256 work, and is it secure?

    SHA-256 pads the input, splits it into 512-bit blocks and runs 64 rounds of bitwise mixing per block to produce a 256-bit digest. No practical collision or preimage attack is known, so it is secure for integrity checks and signatures.

    SHA-256 is a one-way function: there is no key and no way to reverse it. "Decrypting" a hash really means guessing inputs until one matches, which works only for short or common strings such as passwords. That is why passwords need a slow, salted algorithm like bcrypt, not a fast hash.

    Should you still use MD5 or SHA-1?

    Not for security. Both have practical collision attacks, so two different files can share a hash. They remain useful for non-adversarial checks, legacy mirrors and matching indicators of compromise that feeds still publish as MD5.

    Many malware reports and older package mirrors list MD5 or SHA-1, so incident responders still compute them. CRC32 is an error-detecting code, not a cryptographic hash; it appears in zip, gzip and PNG files and catches accidental corruption only.

    What are HMAC-SHA256, bcrypt and NTLM hashes for?

    HMAC-SHA256 authenticates a message with a shared secret (API and webhook signatures), bcrypt stores passwords with a salt and tunable cost, and NTLM is the MD4-based Windows password hash used in Active Directory audits.

    To check a webhook signature, paste the raw request body, enter the signing secret and compare the hex output with the signature header. bcrypt produces a different $2b$ string on every run because the salt is random; use Verify bcrypt to check a password against a stored hash. The NTLM output is MD4 of the UTF-16LE password, useful for testing password-audit tooling with test values. Never paste real production passwords into any web page, including this one.

    Hash algorithm cheat sheet

    Output length and status of common hash algorithms
    AlgorithmHex lengthUse today
    SHA-25664File integrity, signatures, TLS, Git (newer repos)
    SHA-512128Integrity on 64-bit systems, Linux shadow ($6$)
    SHA-140Legacy only: collisions demonstrated (SHAttered)
    MD532Legacy checksums and IOC matching only
    CRC328Accidental corruption detection (zip, PNG)
    HMAC-SHA25664API, JWT HS256 and webhook signatures
    bcrypt60 charsPassword storage (cost 10–12)
    NTLM32Windows password hash (audits, not storage)

    Output length and status of common hash algorithms

    Command-line examples

    Linux / macOS SHA-256

    sha256sum ubuntu.iso   # macOS: shasum -a 256 ubuntu.iso

    PowerShell file hash

    Get-FileHash .\setup.exe -Algorithm SHA256

    HMAC-SHA256 with OpenSSL

    printf %s "$BODY" | openssl dgst -sha256 -hmac "$SECRET"

    Frequently asked questions

    256 bits: 64 hexadecimal characters or 44 Base64 characters.

    Related Engineering Guides