Skip to content
CleanGlyph home

SHA-256 Hash Generator & File Checksum Verifier

Hash text or a local file with SHA-256, SHA-384, SHA-512 or legacy SHA-1, copy the digest as hex or Base64, and check it against an expected checksum. Everything runs in your browser.

Your text never leaves your browser.

Input source
0 UTF-16 units · 0 UTF-8 bytesAnalyzed as you type

Hashed exactly as typed: spaces, trailing newlines and Unicode are never trimmed or normalized. Browsers may turn pasted Windows line endings (CRLF) into LF, so use File mode when the original file bytes matter.

SHA-256 hash

Type or paste text and its hash appears here as you type. An empty input is valid too: it has a well-known digest of zero bytes.

Verify checksum

Not checked

Paste a checksum to compare it with the current hash.

A match shows the same digest, not proof of identical bytes or authenticity. It does not show the file is safe, malware-free or from who you think: that depends on getting the checksum from a source you trust.

Summary

Input
Text (UTF-8)
Algorithm
SHA-256
Bytes hashed
—
Digest length
256 bits · 64 hex
Status
Waiting for input

Hash options

Algorithm

Switching algorithm recalculates the hash and clears the expected checksum.

Hex letter case

How to generate a SHA-256 hash

Type or paste text in Text mode and the SHA-256 digest updates as you type. Use Sample to load abc, whose SHA-256 is the standard test vector ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. Copy the result as hexadecimal, the format most checksum lists use, or as Base64, which Subresource Integrity attributes and some APIs expect. Uppercase hex only changes how the digest is shown.

How to verify a downloaded file

  1. Switch to File mode and choose or drop the downloaded file.
  2. Select the algorithm the publisher lists. The digest length is a good clue: 64 hex digits is SHA-256, 128 is SHA-512.
  3. Paste only the published hex digest into Expected checksum, without the file name that follows it in checksum files.
  4. Read the result: Match, Does not match or Not checked.

A match means that your file produces the expected digest. Different bytes can share a digest, especially with legacy SHA-1. A checksum cannot tell you that the file is free of malware or really comes from its publisher. That depends on where the checksum came from: a value on a separate, trusted page, or one protected by a signature, is worth more than one sitting next to the download.

Text hashing versus raw file hashing

Text mode encodes exactly what is in the box as UTF-8 and hashes those bytes. File mode hashes the file's raw bytes, whatever they are, and never its name or a decoded version of its contents. A file containing just the three bytes abc has the same hash as the text abc, but the same file saved with a trailing newline does not. Browsers also convert pasted Windows line endings (CRLF) to LF inside text boxes, so pasting a file's contents can quietly change its bytes. When the original file is what matters, hash the file.

SHA-256 versus SHA-384, SHA-512 and legacy SHA-1

Supported SHA algorithms and their digest sizes
AlgorithmBitsHex digitsTypical use
SHA-25625664Default for checksums, package lockfiles, Git (SHA-256 mode) and most signatures.
SHA-38438496Subresource Integrity and TLS suites; SHA-512 family with different initial values and a 384-bit output.
SHA-512512128Linux distribution checksums and systems wanting a longer digest; often faster on 64-bit CPUs.
SHA-116040Legacy only. Collisions are practical; never rely on it for security.

SHA-256, SHA-384 and SHA-512 all belong to the SHA-2 family and have no known practical attacks. Choose the one your checksum, specification or system uses. SHA-1 is included only to compare with old published values.

Why whitespace, line endings and Unicode change the digest

A hash depends on every byte, and changing one gives an unrelated digest. Trailing spaces, tabs and the final newline count. So do invisible characters such as zero-width spaces, which you can find with the Unicode Inspector. Accented text can look identical yet be stored as one precomposed character or as a base letter plus a combining mark, giving different UTF-8 bytes. This tool never trims or normalizes, so the digest always describes exactly what you entered. The empty input has a fixed SHA-256 of e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.

Hashes are not encryption or password storage

A hash cannot be decrypted, because nothing is encrypted: it is a fixed-length fingerprint. It is also not a way to hide data, since anyone can hash likely inputs and compare. For passwords, use a slow, salted password hashing function such as Argon2id, scrypt or bcrypt. To check that a message came from someone holding a secret key, use an HMAC or a digital signature, which this tool does not compute.

Privacy and the 32 MiB file limit

Hashing uses your browser's built-in Web Crypto API. Text and files stay in this tab: they are not uploaded, saved, logged or put in the URL. Because the browser digest API needs the whole input at once, a selected file is read fully into memory. Files are limited to 32 MiB (33,554,432 bytes) to keep that safe on phones and older devices; larger files are rejected before any bytes are read. For bigger files, use a command line tool such as sha256sum or shasum -a 256.

Convert digests or other binary data with the Base64 Encoder & Decoder, read token headers that name SHA-based algorithms with the JWT Decoder & Claims Inspector, create random identifiers with the UUID Generator & Validator, or find which characters make two texts hash differently with the Text Difference Checker.

Frequently asked questions

Why does my hash differ from the one on the download page?

Usually one of three things: a different algorithm (a 128-digit checksum is SHA-512, not SHA-256), a different file (an incomplete download or a different release or platform build), or text instead of the file. Hash the downloaded file itself in File mode, and pick the algorithm the publisher names.

Why does a single space or newline change the whole hash?

SHA functions work on bytes, and any change to the input changes the digest unpredictably. A trailing newline adds one byte (0x0A), Windows line endings add two (0x0D 0x0A), and visually identical Unicode text can use different code points, such as a precomposed é versus e followed by a combining accent.

Can a SHA-256 hash be reversed or decrypted?

No. A hash is a one-way fingerprint, not encryption, and there is no key to decrypt it. Short or predictable inputs can still be guessed by hashing candidates until one matches, so a plain hash does not hide a weak secret.

Should I store passwords as SHA-256 hashes?

No. SHA-256 is designed to be fast, which makes guessing passwords fast too. Use a dedicated password hashing function such as Argon2id, scrypt or bcrypt with a unique salt per password, provided by a maintained library.

Is SHA-1 still safe to use?

Not for security. Practical SHA-1 collisions have been demonstrated, so two different files can be made to share a digest. It is included only so you can match legacy checksums, such as old release notes or Git object IDs. Prefer SHA-256 or stronger.

Does a matching checksum mean the file is safe?

It means the file produces the expected digest, not proof of identical bytes, a trusted publisher or file safety. Different bytes can share a digest, especially with legacy SHA-1. If an attacker replaced both the file and the checksum, they still match. Get the checksum from a trusted channel and verify the publisher's signature where available.

Are my text and files uploaded?

No. Hashing uses the browser Web Crypto API in this tab. Text, files, file names, checksums and results are not sent to a server, saved or placed in the URL. Files up to 32 MiB are read into memory to hash them.