About this tool
Generate SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic hashes from text directly in your browser. The hash is calculated locally using the Web Crypto API, so the input does not need to be uploaded to a server.
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text directly in your browser.
Generate SHA cryptographic hashes from text directly in your browser.
Choose the SHA algorithm used to generate the digest.
Text to hash
SHA-256 hexadecimal digest
Current algorithm, input size, and generation status.
Output sizes and typical compatibility considerations for the supported SHA algorithms.
Legacy algorithm for compatibility with older systems.
Modern general-purpose SHA-2 algorithm.
SHA-2 variant with a 384-bit output.
SHA-2 variant with a 512-bit output.
Your support helps us build more tools and improve the ones you already use.
More tools you may find useful.
Test JavaScript regular expressions against text, inspect matches, and experiment with regex flags directly in your browser.
Generate random UUID version 4 identifiers directly in your browser.
Encode text to Base64 or decode Base64 strings back to readable text directly in your browser.
Convert JSON to YAML or YAML to JSON with validation and formatted output directly in your browser.
Generate SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic hashes from text directly in your browser. The hash is calculated locally using the Web Crypto API, so the input does not need to be uploaded to a server.
A cryptographic hash function transforms input data into a fixed-length value called a hash or digest. Even a small change to the original input normally produces a substantially different digest.
Hash functions are designed to be one-way transformations. A hash is not intended to be decoded back into the original data.
Hashing and encryption solve different problems. Encryption is designed to protect data while allowing authorized parties to decrypt it. Cryptographic hashing is designed to produce a one-way digest that can be compared or verified.
You should not use this tool to encrypt passwords, secrets, or other sensitive data. Password storage should use a password-specific hashing algorithm such as Argon2, bcrypt, scrypt, or PBKDF2 with appropriate parameters.
This tool converts text to UTF-8 bytes before calculating the hash. This means Unicode characters such as accented letters, symbols, and non-Latin scripts are included according to their UTF-8 representation.
Hashing the same text with a different character encoding can produce a different result, so the encoding should be consistent when comparing hashes.
Hash generation is performed locally in your browser through the Web Crypto API. The tool does not require the text to be sent to a backend service.
Even though hashing is performed locally, avoid entering highly sensitive information into any web-based tool unless you understand and trust the environment in which it is running.
SHA-256 is a widely used member of the SHA-2 family and is considered suitable for many cryptographic integrity and security applications when used correctly.
SHA-1 is provided primarily for compatibility with older systems. It should generally not be selected for new security-sensitive applications because collision attacks against SHA-1 are practical.
A cryptographic hash is designed to be one-way, so it cannot normally be reversed to recover the original input. However, weak or predictable inputs can sometimes be guessed and compared against their hashes.
No. Encryption is reversible with the appropriate key, while cryptographic hashing is designed as a one-way transformation.
No backend upload is required. Hash generation is performed locally in your browser using the Web Crypto API.
SHA-256 is a good general-purpose choice for most applications. SHA-384 and SHA-512 provide larger digests, while SHA-1 should generally be reserved for legacy compatibility.
Yes. The tool converts the input to UTF-8 bytes before hashing, so Unicode and non-English text can be processed.
Both belong to the SHA-2 family, but SHA-256 produces a 256-bit digest while SHA-512 produces a 512-bit digest. The appropriate choice depends on the requirements of the system using the hash.