A hash is a short fingerprint of some data. Our free Hash Generator shows five of them at once: MD5, SHA-1, SHA-256, SHA-384 and SHA-512. You type some text or choose a file, and the list fills in straight away in your browser. It is made for developers, students, system administrators and anyone who has been told to "check the hash" of a download.
Other pages on the site, the MD5 Generator and the SHA256 Generator, run the same engine with one algorithm in front. This guide is about the all-in-one page: how the five results are laid out, how to compare against a checksum, and how HMAC and the output formats work. If you want the full story on a single algorithm, see the MD5 guide and the SHA-256 guide.
What Hash Generator does
You give it text or a file and it calculates all five hashes together. No algorithm is highlighted, because the page does not know which one you need. It can also:
- Show results as lower-case hex, upper-case HEX or Base64.
- Create HMACs with a secret key typed as text or as hex bytes.
- Compare a pasted checksum against all five results.
- Warn you which algorithms are weak with a "not for security" label.
It cannot reverse a hash. A hash is one-way: nobody, and no tool, can turn a hash back into the original text. Sites that claim to "decrypt MD5" are only looking the hash up in a table of known inputs.
How to use Hash Generator, step by step
- Open Hash Generator.
- Next to Input type, choose Text or File.
- For Text, type into the box labelled "Text (hashed as UTF-8)". For File, press Choose file.
- Read the Hashes panel. The rows run from MD5 to SHA-512. Press Copy beside the one you want.
- Change the Output format if the other system expects capitals or Base64.
- To check a checksum, paste it into "Compare with expected hash (optional)".
A line under the text box shows the size, for example "5 bytes · updates as you type". The results update about 0.2 seconds after you stop typing.
The five rows and what they are for
| Row | Output length | Hex digits | Base64 characters | Use today |
|---|---|---|---|---|
| MD5 | 128 bits | 32 | 24 | Spotting accidents, duplicates, cache keys |
| SHA-1 | 160 bits | 40 | 28 | Legacy systems only |
| SHA-256 | 256 bits | 64 | 44 | The general choice |
| SHA-384 | 384 bits | 96 | 64 | When a standard asks for it |
| SHA-512 | 512 bits | 128 | 88 | A strong alternative to SHA-256 |
MD5 and SHA-1 carry a yellow "not for security" label, because attackers can build two different inputs with the same hash. The page also shows a warning that they are fine for checksums and detecting accidental damage, but not for signatures, certificates or passwords. For a side-by-side explanation, read MD5 vs SHA-1 vs SHA-256: which hash should you use?
Every option explained
Input type: Text or File
Text is hashed as UTF-8 bytes with nothing trimmed. A space at the end or a line break counts. Bangla text becomes its UTF-8 bytes, so the Bangla word পরীক্ষা (21 bytes) has the SHA-256 9bbe334b8c4b21409feba4ac0f2b52aafb558fe0ac0973ef7693cdf88da89b3f.
File hashes the exact bytes of a file of any type. You see the file name and size, a Remove button and a progress bar while it works. MD5 reads the file in 4 MB pieces, so it handles files of any size. The SHA rows need the entire file in memory, so they stop at 500 MB.
Output format: hex, HEX or Base64
These are three ways of writing the same bytes. Lower-case hex is what sha256sum prints. HEX is the same in capitals. Base64 is shorter and ends in = for most algorithms. Choose the style the other system shows, or the comparison will look wrong.
HMAC (with secret key)
Tick HMAC (with secret key) and two things appear: a Secret key field, and a list called "Key is" with Text (UTF-8) or Hex bytes. The panel becomes "HMAC results" and the rows become HMAC-MD5, HMAC-SHA-1, HMAC-SHA-256 and so on.
An HMAC mixes the secret key into the hash. Only someone with the key can produce or verify the value, which is why APIs and webhooks use it to sign messages. For the key secret and the message hello, HMAC-SHA-256 is 88aab3ede8d3adf94d26ab90d3bafd4a2083070c3bcce9c014ee04a443847c0b. In Base64 the same value is iKqz7ejTrflNJquQ07r9SiCDBww7zOnAFO4EpEOEfAs=.
Hex keys may contain spaces, colons or dashes and a leading 0x. A bad key shows "The key contains characters that aren't hexadecimal (0–9, a–f)." or "A hex key needs an even number of digits." The "not for security" label and the warning box are hidden in HMAC mode, because the weaknesses of MD5 and SHA-1 as plain hashes matter less when a secret key is involved.
Compare with expected hash (optional)
Paste a checksum from a download page. Spaces are ignored, hex is matched without regard to capitals, and a leading 0x is allowed. A match turns one row green and adds a "match" label, with the note "Match — the expected value equals the SHA-256 hash." (or whichever row matched). Base64 values are compared as written, apart from trailing = signs.
The special part of the all-five page is that every row is tried. You do not have to know whether the publisher gave MD5 or SHA-256. If nothing matches, the red note says "No match with any hash of this file", and for a hex value it tells you which algorithm its length fits: "Its length fits SHA-256 — the input differs (check for extra spaces, line breaks or a different file)." If the length fits nothing at all, you get "A 50-digit hex value doesn't match the length of any supported algorithm." That points to a copy-and-paste problem.
What it accepts and its limits
- Text: any text, any length you can type or paste.
- Files: any type. MD5 has no size limit, and the SHA rows are limited to 500 MB.
- Large files: the SHA rows show "File is over 500.00 MB — too large for SHA hashing in the browser."
- Unreadable files: "The file couldn't be read (it may have been moved or deleted)." Pick the file again.
- Empty input: the rows show the hashes of an empty string, and a line says so. The SHA-256 of nothing is
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
Privacy
Everything runs in your browser. Text, files and secret keys are not uploaded, and hashing sends no request. SHA-1, SHA-256, SHA-384 and SHA-512 use the Web Crypto feature built into the browser. MD5 is calculated by code on the page, because browsers do not include it. You can confirm this in your browser's developer tools by watching the Network tab while you hash a file.
A worked example: a changed letter
Type hello and read the SHA-256 row:
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Now change it to Hello with a capital H:
185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969
Nothing is similar between the two values, although the texts differ by one letter. That is the point of a hash. A tiny change in the input changes the whole output, so a matching hash is strong evidence that two files are identical.
Why the same-looking text gives different hashes
- A hidden newline. Many command-line examples add a line break to the text they hash, so
helloandhelloplus a line break differ. - Line endings. Windows uses CRLF, Linux uses LF. They are different bytes.
- Capitals and spaces. Any difference at all changes the result.
- Encoding. The page uses UTF-8. A program that hashes UTF-16 will disagree.
- Pasting a file's text. Choose File instead, so the exact bytes are hashed.
Tips to work faster
- Choose File for downloads, installers and documents, then paste the checksum into the compare box.
- Leave the algorithm choice to the compare box: it finds the right row for you.
- Use the HEX output only when the other side shows capitals.
- For signing a request, tick HMAC and pick the HMAC-SHA-256 row, then check the key format (text or hex) matches your code.
- To see what a password check does with SHA-1, look at how to check if your password was leaked.
Common problems and how to fix them
"No match with any hash of this text"
Check for extra spaces, a trailing line break, different capitals, or a different file. Paste only the hash, not a whole line like hash filename.
My HMAC is different from my server's
Check the key type. A key written as hex in your code must be entered as Hex bytes, not as text. Also check that the message is byte for byte the same.
The rows show only dots or a dash
While a file is being hashed, the rows show "…" and a progress bar. Wait for it to finish. Before you pick a file, the panel says "Choose a file to see its hashes." For Text, an empty box does not leave the rows blank: it shows the hashes of an empty string.
Related tools
- SHA256 Generator: the same page with SHA-256 first.
- MD5 Generator: the same page with MD5 first.
- Password Strength Checker: see how fast hashes make weak passwords easy to crack.
- JWT Decoder: read the parts of a signed token.
- Security Tools: the rest of our security utilities.
Quick checklist
- Pick Text or File, then read all five rows.
- Use File for anything that came from a file.
- Paste the expected checksum into the compare box.
- Prefer SHA-256 or SHA-512 for anything involving security.
- Never store passwords as plain hashes.



