Skip to content
FestivKit

Hash Generator

Hash text with the Web Crypto API. Unicode is hashed as UTF-8, and each digest can be copied on its own.

Your data stays in your browser. This tool processes your input locally and does not upload it to a server.

SHA-1

—

SHA-256

—

SHA-384

—

SHA-512

—

What is a hash generator?

A hash generator turns any text into a fixed-length fingerprint called a digest. This tool computes SHA-1, SHA-256, SHA-384 and SHA-512 digests at once using your browser’s Web Crypto API. The same input always gives the same digest, and the text never leaves your device.

How the hashes are calculated

The tool encodes your text as UTF-8 bytes and passes them to crypto.subtle.digest for each of the four algorithms. The result is shown as lowercase hexadecimal: 40 characters for SHA-1, 64 for SHA-256, 96 for SHA-384 and 128 for SHA-512.

A hash function is deterministic and one-way. Changing a single character produces a completely different digest, and you cannot recover the original text from the digest alone.

When to use SHA-256 and friends

Use a hash to check message integrity, compare text against a published checksum, build cache keys, or generate stable identifiers from content. SHA-256 is the usual default. SHA-384 and SHA-512 give longer digests and belong to the same SHA-2 family specified in FIPS 180-4.

The page hashes the text you type, not files. To verify a downloaded file, use your operating system’s checksum command instead.

Privacy

Hashing runs entirely in your browser. Nothing is uploaded, so you can hash internal strings without sending them to a server. MD5 is not offered because the Web Crypto API does not support it.

Examples

Hash the word "hello"

Input

hello

Output

SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

SHA-384 and SHA-512 are shown too; they are longer (96 and 128 hex characters).

Case matters

Input

Hello

Output

SHA-1: f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0
SHA-256: 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969

One capital letter changes every digit of the digest.

Unicode text is hashed as UTF-8

Input

café

Output

SHA-256: 850f7dc43910ff890f8879c0ed26fe697c93a067ad93a7d50f466a7028a9bf4e

The é is two bytes in UTF-8, so a tool that uses Latin-1 would give a different result.

Common mistakes and edge cases

  • Do not store passwords as plain SHA-256 or SHA-1. These hashes are fast, so attackers can test billions of guesses per second. Use a slow password hash such as Argon2, scrypt or bcrypt with a salt.
  • SHA-1 is broken for collision resistance. Use it only for legacy compatibility, never for signatures or security decisions.
  • Trailing spaces and line endings count. "hello" and "hello" followed by a newline have different digests, which often explains a mismatch with a command-line result.
  • A hash is not encryption. You cannot decrypt it, and short or common inputs can be found by guessing, so a hash of a low-entropy value is not secret.
  • There is no HMAC or salt option here. For keyed hashing, use a library designed for it.

How to use this tool

  1. Enter the text to hash.
  2. Generate the digests.
  3. Copy the algorithm you need.

Frequently asked questions

Which hash algorithms does this tool support?

It supports SHA-1, SHA-256, SHA-384 and SHA-512, all computed through the browser’s crypto.subtle.digest function. It does not support MD5, SHA-3 or HMAC. If you need a keyed hash or a file checksum, use a command-line tool or a library built for that.

Is SHA-256 safe to use?

SHA-256 has no known practical collision or preimage attacks and is widely used for integrity checks, digital signatures and content addressing. It is not a good choice for storing passwords on its own because it is too fast; use Argon2, scrypt or bcrypt for that.

Why does my SHA-256 differ from another tool’s result?

The most common cause is different input bytes. Check for a trailing newline, extra spaces, different line endings (CRLF versus LF) or a different text encoding. This tool encodes text as UTF-8, which matches most modern tools.

Is my text sent to a server?

No. The digest is calculated by your browser’s built-in Web Crypto API and the text stays on your device. You can confirm this by opening your browser’s network tab while you generate a hash.

Can I reverse a hash to get the original text?

No. A hash function is one-way by design. Websites that appear to reverse hashes simply look up precomputed digests of common strings. Long, random inputs cannot be recovered this way.

References

Last reviewed

Related tools

Browse all tools