Home / Code & Encoding Tools / Hash Generator
Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes from text, right in your browser.
Hash any text locally
Paste a string and get its MD5, SHA-1, SHA-256 and SHA-512 digest instantly. The hashing runs in your browser: SHA algorithms use the built-in Web Crypto API, MD5 is computed by a small JavaScript implementation, and nothing is sent to a server — which matters when hashing passwords, API keys or private data.
What each algorithm is for
- MD5 — fast checksums and legacy systems. Broken for security; never use it to store passwords.
- SHA-1 — also deprecated for signatures; still seen in old Git and certificate tooling.
- SHA-256 — the current default: file integrity, signatures, API request signing, blockchain work.
- SHA-512 — longer digest, commonly used for password hashing pipelines and large-file integrity.
Typical uses
- Verifying a downloaded file against a published checksum
- Generating a cache-busting key or deterministic ID from a string
- Comparing two strings by digest instead of storing the originals
- Checking what an API expects (`sha256=...` signatures)
Notes
- Hashing is one-way — output cannot be reversed to the original text.
- Two different inputs always give different digests; the same input always gives the same digest.
- Percent-encoding matters: a trailing space or newline changes the hash completely. Watch the raw byte size shown next to the input.
FAQ
Is it safe to hash a password here?
The text never leaves your browser, so it is safe as a demonstration. For real systems do not use plain MD5/SHA for passwords — use bcrypt, scrypt or Argon2 with a salt.
Can I reverse a hash?
No. Hashes are one-way functions; "cracking" means guessing inputs and comparing digests, which only works for weak passwords.
Why do I get a different hash than another site?
Usually encoding: a trailing newline, different Unicode normalisation, or hashing a file versus its text. Compare the raw byte length.