Hash Generator

Generate hashes with common algorithms.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste text and see its MD5, SHA-1, SHA-256 and SHA-512 hashes together, as lowercase hex. The text is hashed as UTF-8 in your browser. Use it for checksums, cache keys and comparing values, not for storing passwords.

How to use

1
Step 1
Paste or type the text.
2
Step 2
Press Run.
3
Step 3
Copy the hash you need from the JSON result.

How it works

A hash function turns any input into a fixed-length fingerprint, so a one-character change gives a completely different result. MD5 is 128 bits (32 hex characters), SHA-1 is 160 bits (40), SHA-256 is 256 bits (64) and SHA-512 is 512 bits (128). SHA-256 and SHA-512 use the Web Crypto API; MD5 uses a small JavaScript library.

Worked example

Hashing the word hello

Input
hello
Output
{ "md5": "5d41402abc4b2a76b9719d911017c592", "sha1": "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d", "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824", "sha512": "9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043" }
Walkthrough
Hashing is case and whitespace sensitive: hello with a trailing newline gives different values. The MD5 of hello is 5d41402a... as widely documented.

Limitations

  • Text input only; files are not hashed here.
  • MD5 and SHA-1 are broken for security use. Use SHA-256 or better for integrity checks.
  • Plain hashes are not safe for password storage; use bcrypt, scrypt or Argon2 with a salt.
  • No SHA-384, SHA-3 or uppercase output.

Questions

How do I generate an MD5 or SHA-256 hash?
Paste the text and press Run. All four hashes appear in the result.
Is MD5 secure?
No. It is fine for non-adversarial checksums, but collisions can be crafted, so do not use it for security.
Why does a trailing newline change the hash?
Every byte counts. A newline is an extra byte, so the digest is different.
Is my text uploaded?
No. Hashing runs locally in your browser.

Features

  • MD5, SHA-1, SHA-256, SHA-512
  • Lowercase hex
  • UTF-8 input
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • TypeScript in 100 Seconds

    Fireship

    Typed JS snippets often get formatted or hashed nearby.

    Watch on YouTube
  • Inspect Network Activity - Chrome DevTools 101

    Chrome for Developers

    Debugging payloads you paste into JSON and JWT tools.

    Watch on YouTube