Skip to content
🔑

Hash Generator

Generate MD5, SHA-1, and SHA-256 hashes of any text using your browser.

Runs in your browser

Updated

MD5

-

SHA-1

-

SHA-256

-

Three hashes, one pass

Type or paste text, press Generate Hashes, and the tool returns MD5, SHA-1 and SHA-256 as lowercase hexadecimal. MD5 is computed by a small JavaScript implementation that walks the UTF-8 bytes through the 64-round compression function. SHA-1 and SHA-256 use the browser's built-in WebCrypto digest, which is native and much faster for long input. All three values are shown together so you can compare against a published checksum without switching tools.

A worked example

For the three characters "abc" the MD5 is 900150983cd24fb0d6963f7d28e17f72, the SHA-1 is a9993e364706816aba3e25717850c26c9cd0d89d and the SHA-256 is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. These match the reference vectors published with each algorithm, so a mismatch on the same input means the text differs, often by a trailing newline.

Secure context requirement

WebCrypto is only exposed on HTTPS and on localhost. On a plain HTTP page the digest call fails, and the SHA fields display "unavailable" while MD5 still works because it runs in ordinary JavaScript. If only two of the three fields fill in, check the address bar.

Where it stops

  • No copy buttons; select the value manually.
  • Nothing updates until the button is pressed, so an empty input leaves the previous hashes on screen.
  • No SHA-512, SHA-384 or Base64 output.
  • Hashes are not salted and are unsuitable for storing passwords.

Questions people ask

Can I verify a download?

Compare the SHA-256 shown here with the publisher's checksum. The file checksum verifier hashes a file directly instead of pasted text.

Which hash should I use for signatures?

SHA-256, and ideally an HMAC keyed with a secret. The HMAC generator covers that case; for account passwords use the password generator and a proper password hash on the server.