Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text locally with the Web Crypto API. Copy the hex digest instantly.
🔒 Runs entirely in your browser — nothing is uploadedGenerate text hashes locally
A hash function turns text into a fixed-size digest that changes completely when the input
changes. Developers use hashes to compare data, verify file lists, create cache keys and check
whether two pieces of text are identical without storing the original value. This generator uses
crypto.subtle.digest, the Web Crypto API built into modern browsers, so the text is
processed on your device. The result is shown as lowercase hexadecimal characters and can be
copied with one click. Empty text is valid too; it produces the standard digest for an empty
byte string.
Choosing SHA algorithms
SHA-256 is the best default for most modern tasks because it is widely supported and still considered secure for general integrity checks. SHA-384 and SHA-512 produce longer digests and are often used in systems that already standardize on the SHA-2 family with larger output. SHA-1 remains available here for compatibility with older systems, but it should not be chosen for new security-sensitive designs because practical collision attacks exist. If a service asks for a specific algorithm, match that requirement exactly, including text encoding and line endings, because even tiny input differences produce a different digest.
Hashes are not encryption
Hashes are one-way summaries, not encrypted messages. You cannot decrypt a SHA digest to recover the input, but attackers can guess common inputs and compare the resulting hashes. That is why plain SHA hashes are not safe for storing passwords. Password storage needs slow, salted, purpose-built algorithms such as Argon2, bcrypt or scrypt on a trusted backend. Use this browser tool for quick local digest generation, demos, compatibility checks and non-secret integrity workflows where keeping the input on your device is helpful. If you are comparing results with another app, copy the exact text carefully and watch for hidden spaces, tabs or final newlines, because those characters are part of the hashed input too.
How to use
- Enter textPaste or type the text you want to hash.
- Choose algorithmSelect SHA-1, SHA-256, SHA-384 or SHA-512.
- Generate and copyCreate the hex digest locally and copy it if needed.