🌐 EN

🔐 Hash Generator

Generate a hash or keyed HMAC from text or a selected file.

Select a file to generate hash of file contents

Inputs and checks

  • Type nonempty text or select a file of no more than 10 × 1024 × 1024 bytes.
  • Select one or several of MD5, SHA-1, SHA-256, and SHA-512; MD5 starts selected.
  • For a keyed result, check HMAC and enter a nonempty key; uppercase changes the hex letter display.
  • Press Generate after your selection, then copy individual values or use Copy All.

Reading the result

  • SHA-256 produces 64 hexadecimal characters. Different inputs can sometimes have the same hash, so a match does not prove the inputs are identical. Compare using the same text, spaces, algorithm, and options, including the key for HMAC.
  • The selected file takes priority over typed text, and a new input clears older results.
  • A hash cannot decrypt data or check another expected hash automatically; browser cryptography support and the MD5 library may be required.

Examples

SHA-256 digest of abc

Input
Text: abc; SHA-256 only; HMAC off; lowercase
Result
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
How to check it
SHA-256 hashes the three UTF-8 bytes of abc and displays 64 hexadecimal characters.

SHA-256 HMAC of a sentence

Input
Text: The quick brown fox jumps over the lazy dog; SHA-256 only; HMAC on; key: key; lowercase
Result
f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8
How to check it
HMAC combines the UTF-8 message and the supplied key using SHA-256.

Frequently asked questions

Does uppercase change the hash bytes?
No. It changes only the displayed hexadecimal letters.
Can I hash an empty text box?
No. Text must be nonempty, although a selected empty file has bytes that can be hashed.
Does this check that two files match?
No. It produces hash values for you to compare elsewhere.