UTF-8 text includes spaces and line endings
Text mode encodes the editor value as UTF-8. A final newline, tab, non-breaking space, different Unicode character, or case change produces a different digest.
Free online developer utility · no registration or login
Use this hash generator to create a SHA digest from exact UTF-8 text or one local file. Choose SHA-256, SHA-384, SHA-512, or legacy SHA-1, then compare, copy, or download the result as hex or Base64 without sending the source to an external hashing service.
Hash and checksum workspace
Hash exact text or one local file, then compare the complete result with an optional trusted digest. Source bytes stay in this browser page.
Source
Generate a digest to review and use the complete value.
No digest generated yet
The full hash, source byte count, digest size, output representation, and optional match status will appear here.
Keep the source, algorithm, representation, and expected value aligned before treating two digests as comparable.
Enter the exact UTF-8 text or choose one local file up to 50 MB. Spaces, line endings, and every file byte affect the result.
Use SHA-256 by default unless your protocol or trusted reference specifies SHA-384, SHA-512, or legacy SHA-1. Match hex or Base64 to the expected value.
Paste an optional expected digest for an automatic full-value comparison, generate the hash, review the source facts, then copy or download the complete result.
Use the digest as an exact byte fingerprint, then interpret a match only within the trust boundary of the expected value.
Hash functions operate on bytes, not on how content looks on screen. Small invisible differences explain many checksum mismatches.
Text mode encodes the editor value as UTF-8. A final newline, tab, non-breaking space, different Unicode character, or case change produces a different digest.
File mode reads the selected file as bytes rather than converting it to visible text. Re-saving, repacking, recompressing, or changing metadata can change those bytes.
Select the representation used by the trusted reference. Lowercase and uppercase hex contain the same digest value, while Base64 uses a shorter encoded alphabet.
Use the algorithm required by the protocol, release page, or existing dataset. A digest from one SHA variant cannot be compared with another.
SHA-256 returns a 256-bit digest, shown as 64 hexadecimal characters. It is widely used for file checksums and content fingerprints.
These algorithms produce longer digests. A longer output is not a reason to substitute one when a system explicitly requires SHA-256 or another exact algorithm.
SHA-1 remains visible in old checksum lists and protocols, but known collision weaknesses make it unsuitable for new collision-sensitive security designs.
A digest is useful evidence only when the expected value, source, and intended security property are understood.
Match every character against a value obtained from a trusted source. The built-in comparison removes manual scanning but cannot judge whether the reference itself is trustworthy.
If an attacker can replace both a file and its displayed checksum, a plain hash does not prove who published it. A match also is not a malware scan.
Use HMAC or a digital signature when authenticity is required. Password storage needs a salted, deliberately expensive password-hashing or key-derivation scheme.
Direct answers about SHA variants, exact bytes, checksum comparison, local file handling, and what an unkeyed digest cannot prove.
A hash generator applies a deterministic hash function to exact input bytes and returns a fixed-length digest. The same bytes and algorithm produce the same digest; changing even one byte changes the result.
This page uses the browser Web Crypto API for SHA-256, SHA-384, SHA-512, and SHA-1. SHA-256 is the default. SHA-1 is included only for comparison with legacy values and should not be chosen for new collision-sensitive designs.
Yes. Choose Local file, select one file up to 50 MB, keep SHA-256 selected, and generate the digest. The page reads the original file bytes in this browser tab.
Paste the complete trusted digest into the optional Expected digest field before or after generating. The page ignores surrounding whitespace and hexadecimal letter case, then shows Match or Mismatch for the selected algorithm and representation.
Confirm the algorithm, exact bytes, text encoding, line endings, leading or trailing spaces, and output representation. Hashing visible hexadecimal characters is different from decoding those characters into bytes first.
Hex and Base64 represent the same digest bytes with different alphabets and lengths. Uppercase and lowercase hexadecimal are equivalent values; Base64 is a different textual representation and must be compared with another Base64 value.
A cryptographic hash is not encryption and has no decryption key. Weak or predictable inputs can sometimes be guessed and re-hashed, so a digest should not be treated as reversible protection.
No. Password storage should use a dedicated salted, deliberately expensive password-hashing or key-derivation function selected for your platform, not a fast general-purpose SHA digest.
No. A match confirms that the calculated bytes match the expected digest. It does not scan for malware or prove publisher identity unless the expected value came through a separate trusted or authenticated channel.
The hashing workflow reads pasted text and selected file bytes in this browser tab and does not send the source to an external hashing service. File size is capped at 50 MB because the browser digest API reads the complete input into memory.
Generate identifiers, encode bytes, format JSON, or inspect a token payload in the next browser-local workflow.
Generate one random UUID v4 or a batch of up to 100 in your browser. Choose canonical, uppercase, GUID-braced, or compact display, then copy individual values or export the full list as TXT, CSV, or JSON with no registration or login.
Open toolEncode or decode UTF-8 and URL-safe Base64 text online. Paste a value, copy the result, or download it from your browser without registration or login.
Open toolPaste JSON or open a file to format, validate, beautify, or minify it. Choose indentation, review parser errors, and copy or download the result in your browser with no login.
Open toolInspect JWT headers, payloads, claims, expiry times, and signature segments in your browser. Decode locally with no login; this tool does not verify signatures.
Open tool