Hash Generator
Generate cryptographic hashes for any text or file. MD5, SHA-1, SHA-256, SHA-384, SHA-512 — all computed locally using the browser's Web Crypto API. Output in hex or base64. Useful for checksum verification in test pipelines.
Enter text above to generate hash
Enter text above to generate hash
Enter text above to generate hash
Enter text above to generate hash
Enter text above to generate hash
SHA-256/384/512 use the browser's native Web Crypto API — no data leaves your device. MD5 uses a pure JavaScript implementation. For security-sensitive use, prefer SHA-256 or higher.
Use a digest to compare content
A hash function maps input bytes to a fixed-length digest. Paste text or load a text file, then compare the output with a digest produced elsewhere. Matching SHA-256 digests are a quick way to check that two copies have the same content. This page computes the values in your browser; it does not upload the selected text or file.
Choose an algorithm for the job
Use SHA-256 for a general purpose checksum or when a system asks for a SHA-256 digest. SHA-384 and SHA-512 produce longer outputs. The algorithm must match on both sides of a comparison: a SHA-256 value cannot be compared with an MD5 value. MD5 and SHA-1 are included for compatibility with older files and systems. Their collision resistance is inadequate for security decisions, so do not use them to prove that an untrusted download is authentic.
A hash is also not password storage. Password systems need a deliberately slow password hashing scheme with a salt, such as Argon2id, bcrypt, or scrypt. A fast digest from this tool cannot replace that protection.
Text and files have different edges
The text field hashes the characters exactly as entered after the browser encodes them as bytes. Visually identical Unicode text can have different byte sequences, for example when a character is represented as one composed code point or as a base letter plus a combining mark. Whitespace and line endings count too. If a digest differs, compare the original bytes and encoding before assuming the file contents changed.
File mode reads a text file as text. It is useful for source files, configuration, and logs. It is not a binary-file checksum utility: decoding a binary file as text can change or replace byte sequences. For an exact binary checksum, use a local command such as shasum -a 256 file.bin on macOS or Linux.
Common questions
Why does one small edit change the whole result?
A digest is designed to depend on the full input. A changed newline, trailing space, or single character produces a different value. Check that both inputs use the same encoding and line endings.
Can I use this to check a download?
Only if the checksum is computed over the exact same bytes. This tool reads files as text, so it cannot verify a binary download exactly; use a local command such as shasum -a 256 file.bin for that. A checksum detects accidental corruption. For protection against a malicious replacement, obtain the expected value through a trusted channel or verify the publisher’s signature.
What should I use for a token or JWT?
A plain digest does not validate a signed token. Use a verifier that checks the token’s signature, issuer, audience, and expiry. See the JWT decoder for local inspection, and the Base64 tool for encoding and decoding data.
For a connection failure while retrieving a checksum from a CI service, see the ECONNREFUSED in CI guide. Compare only values generated with the same algorithm and the same exact bytes.