Hash Generator - MD5, SHA-1, SHA-256 & SHA-512 Online

Compute MD5, SHA-1, SHA-256, SHA-384, and SHA-512 checksums from any UTF-8 text inside your browser. Compare digest formats in lowercase or uppercase hex and copy individual hashes with zero server transmission.

Hash Generator

How to use the Hash Generator

  1. 1Paste or type the text you want to hash into the Input Text textarea at the top.
  2. 2Check or uncheck Uppercase HEX on the top right to switch hexadecimal digest output between lowercase a–f and uppercase A–F.
  3. 3Inspect all five digests—MD5, SHA-1, SHA-256, SHA-384, and SHA-512—as they compute live beneath the input.
  4. 4Click Copy beside any algorithm row to copy that specific checksum, or click Clear to empty the input field.

What the Hash Generator does

Hash Generator turns UTF-8 text into five widely used digest formats strictly inside browser memory with zero server uploads:

  • Encodes your text into UTF-8 bytes via TextEncoder and computes SHA-1, SHA-256, SHA-384, and SHA-512 concurrently using window.crypto.subtle.digest directly in browser memory.
  • Computes 128-bit MD5 checksums in browser JavaScript using js-md5 alongside the SHA family, returning an empty digest state cleanly when the input box is blank.
  • Displays fixed hexadecimal lengths ranging from 32 characters for MD5, 40 for SHA-1, 64 for SHA-256, 96 for SHA-384, and 128 characters for SHA-512.
  • Reformats all five digest cards instantly between lowercase and uppercase hexadecimal letters when you toggle Uppercase HEX without clearing or altering your input text.
  • Provides a dedicated Copy button on every individual hash row so you can grab one specific checksum cleanly, plus a Clear button at the bottom.

Example

Sample text (lowercase hex)
hello
Returned digests
MD5: 5d41402abc4b2a76b9719d911017c592
SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Because cryptographic hashes are deterministic yet sensitive to every input bit, adding one trailing space or changing a single letter completely alters every digest shown.

Frequently asked questions

What is a cryptographic hash?

A hash is a fixed-length digital fingerprint calculated from input data of any size. Changing even a single character in the input produces a completely different digest string.

Can a hash be reversed back into the original text?

No. Hash functions are one-way mathematical transformations, so you cannot algebraically invert a digest to recover the input string.

Why should MD5 and SHA-1 not be used for storing passwords?

MD5 and SHA-1 are outdated for security-critical uses because they are vulnerable to collision attacks and are fast to brute-force on modern hardware. Use modern slow password-hashing algorithms like Argon2, scrypt, or bcrypt for passwords.

Is my input text sent to a backend server to calculate the hash?

No. SHA-1, SHA-256, SHA-384, and SHA-512 run locally using crypto.subtle.digest, and MD5 runs in browser JavaScript with zero server requests.

Related tools

View All Tools