A sleeping cat.

Hash Generator

Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text directly in your browser.

Hash Generator

Generate SHA cryptographic hashes from text directly in your browser.

Web Crypto API

Hash algorithm

Choose the SHA algorithm used to generate the digest.

256 bits
SHA-256 — Modern general-purpose SHA-2 algorithm.
Actions

Text to hash

0 chars
UTF-80 bytes

SHA-256 hexadecimal digest

256 bits
Hexadecimal0 characters

Hash Summary

Current algorithm, input size, and generation status.

AlgorithmChange
SHA-256
256-bit cryptographic hash
InputChange
0
0 UTF-8 bytes
StatusStatus
Empty
Enter a value to begin

Algorithm Reference

Output sizes and typical compatibility considerations for the supported SHA algorithms.

SHA-1160 bits

Legacy algorithm for compatibility with older systems.

SHA-256256 bits

Modern general-purpose SHA-2 algorithm.

SHA-384384 bits

SHA-2 variant with a 384-bit output.

SHA-512512 bits

SHA-2 variant with a 512-bit output.

♥

ToolTunnel is free and ad-free

Your support helps us build more tools and improve the ones you already use.

♥Support

Related Tools

More tools you may find useful.

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.

What Is a Cryptographic Hash?

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.

Supported Hash Algorithms

  • SHA-1 produces a 160-bit digest and is available mainly for compatibility with legacy systems. It is not recommended for new security-sensitive applications because practical collision attacks have been demonstrated.
  • SHA-256 produces a 256-bit digest and is a common general-purpose SHA-2 algorithm.
  • SHA-384 produces a 384-bit digest and is part of the SHA-2 family.
  • SHA-512 produces a 512-bit digest and is useful when a larger digest is required.

Common Use Cases

  • Verify that downloaded or transferred data has not changed.
  • Compare content fingerprints between systems.
  • Generate test values for APIs, applications, and development workflows.
  • Inspect hashes used by software distribution and integrity-checking systems.
  • Create deterministic fingerprints for text-based data.

Hashing Is Not Encryption

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.

UTF-8 and Input Encoding

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.

Security and Privacy

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.

Frequently Asked Questions

▶Is SHA-256 secure?

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.

▶Should I use SHA-1?

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.

▶Can I reverse a hash to get the original text?

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.

▶Is hashing the same as encryption?

No. Encryption is reversible with the appropriate key, while cryptographic hashing is designed as a one-way transformation.

▶Does the Hash Generator upload my text?

No backend upload is required. Hash generation is performed locally in your browser using the Web Crypto API.

▶Which hash algorithm should I choose?

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.

▶Can I hash Unicode or non-English text?

Yes. The tool converts the input to UTF-8 bytes before hashing, so Unicode and non-English text can be processed.

▶What is the difference between SHA-256 and SHA-512?

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.