Introduction
This free hash value calculator turns any text, hex bytes, or file into a hash. A hash is a short string of letters and numbers, like a fingerprint for data. The same input always gives the same hash. Change one letter, and the hash looks completely different.
You can pick from over 30 algorithms, including MD5, SHA-1, SHA-256, SHA-512, SHA-3, BLAKE2b, RIPEMD, Whirlpool, and CRC32. Check many at once and compare them side by side. Turn on HMAC mode if you want to add a secret key. If you only need a checksum for error detection, the dedicated CRC Calculator covers that job on its own.
People use hashes to check that a download is not broken or changed, to compare two files, and to keep records for audits. Paste an expected hash in the Verify box, and the tool tells you right away if it is a Match or a Mismatch.
Everything runs inside your browser. Your text and files never get uploaded, so even large files stay private. When you are done, you can copy a hash or export a report as PDF, CSV, JSON, HTML, or plain text.
How to use our Hash Value Calculator
Pick your input (text, hex bytes, or a file), choose the hash algorithms you want, and the tool shows the hash value for each one. You can also check a hash against one you already have, and save a report.
Input tab: Click Text to type words, Hex Bytes to paste raw bytes, or File to hash a file from your device.
Text to hash: Type or paste the words you want to hash. The box counts your characters and bytes as you type. If you need a plain character or word tally instead, try the Word Count Calculator.
Character encoding: Choose how your text turns into bytes, like UTF-8 or Latin-1. Different encodings give different hash values.
Line ending style: Pick LF, CRLF, or CR to match the file you are checking. Line breaks change the hash.
Hexadecimal bytes: Paste hex digits like DEADBEEF. Spaces, commas, colons, and 0x are ignored. To convert or do math on those values first, use the Hex Calculator or the Binary Calculator.
File: Drag files onto the box or click to browse. Files up to 500 MB work, and they stay in your browser. Hashing a big file after a download? The Download Time Calculator estimates how long the transfer itself takes.
Uppercase hash output: Turn this on to show the hash in capital letters instead of small ones.
Enable HMAC / Keyed Hashing: Turn this on if you want a keyed hash instead of a plain hash.
Secret key: Type your key here when HMAC is on. The same text with a different key gives a different hash.
Search algorithms: Type a name like sha3 or crc to find an algorithm fast.
Algorithm list: Check the boxes for the hashes you want, such as MD5, SHA-256, SHA3-256, or CRC32. Use Select all, Deselect all, or Recommended set to change many at once.
Calculate Hash: Click this to get your results, the step-by-step math, and the chart of digest sizes and speed.
Verify box: Paste a hash you already have next to any result. The tool says Match or Mismatch.
Report metadata: Add a title, your name, your organization, and a purpose if you want them in your report. Your secret key is never saved.
Export buttons: Save your results as a PDF, CSV, JSON, HTML, or plain text file.
What Is a Hash Value?
A hash value is a short code made from data. You feed in text, bytes, or a whole file, and a hash function gives back a fixed-length string of letters and numbers, like 9e107d9d372bb6826bd81d3542a419d6. That code is called a hash, a digest, or a fingerprint.
The same input always gives the same hash. But change one letter, one space, or one bit, and the hash changes completely. That is why hashes are great for checking if data is exactly what you expect.
How Hash Functions Work
A hash function does not care how big your data is. A one-word message and a 400 MB video both come out the same length. Most hash functions do this in a few steps:
- Convert to bytes: text is turned into raw bytes using an encoding like UTF-8.
- Pad the data: extra bytes are added so the total splits into equal blocks (often 64 or 128 bytes).
- Mix each block: a compression function scrambles each block into a running state, usually with rotations, additions, and XOR operations.
- Output the digest: the final state is written out as hex digits.
Hashing only works one way. You cannot take a hash and turn it back into the original data. There is no "unhash" button.
Common Hash Algorithms
Different algorithms give different digest sizes and different safety levels:
- SHA-256 and SHA-512: the modern standard. Safe and widely used for files, downloads, and signatures.
- SHA-3 family: a newer design built on a "sponge" instead of the older block method.
- BLAKE2b: very fast and strong, popular in newer software.
- SHA-1, MD5, MD4, MD2: broken for security. People have made two different files with the same MD5 or SHA-1 hash. Still fine for spotting simple file errors, never for passwords or signatures.
- RIPEMD and Whirlpool: older cryptographic options, still used in some tools and in Bitcoin addresses (RIPEMD-160). If you are tracking coin holdings too, see the Bitcoin Calculator.
- CRC32, Adler-32, xxHash, MurmurHash, FNV, JOAAT: not cryptographic. They are built for speed, used in hash tables, ZIP files, and error checks. Do not use them for security.
Why Encoding and Line Endings Matter
Hashing works on bytes, not letters. So the same words can give two different hashes if the encoding changes. "café" in UTF-8 is not the same bytes as "café" in Latin-1. Line endings matter too: Windows uses \r\n while Linux and macOS use \n. That single hidden byte changes the whole digest. If your hash does not match what you expected, check these settings first. For other byte-level system tasks, the Chmod Calculator and the Subnet Calculator follow the same bits-and-bytes thinking.
What Hashes Are Used For
- File integrity: software sites publish a SHA-256 hash. You hash your download and compare. If the codes match, the file is unchanged.
- Digital signatures and certificates: the hash is signed instead of the whole file.
- Version control: Git names every commit and file by its hash.
- Blockchains: blocks are chained together by hashes.
- Forensics and audits: hashes prove evidence files were not tampered with.
- Duplicate detection: two files with the same hash are almost certainly the same file. Handy when you are planning storage with the RAID Calculator or moving data with the Data Transfer Calculator.
HMAC: Hashing With a Secret Key
A plain hash proves data did not change, but anyone can compute it. HMAC adds a secret key, so only people who know the key can make or check the code. It works by hashing the message twice, mixing the key in both times:
HMAC = H((key XOR opad) || H((key XOR ipad) || message))
HMAC is used for API request signing, webhooks, and secure cookies. The same message with two different keys gives two totally different results. HMAC needs a block-based hash, so it does not work with CRC32 or other simple checksums.
Hashing Is Not Password Storage
Do not store passwords with plain SHA-256 or MD5. They are too fast, so attackers can guess billions per second. Real password storage uses slow, salted functions built for the job, like bcrypt, scrypt, or Argon2. General hash functions are for integrity, not for hiding secrets.
Collisions and Digest Size
A collision is when two different inputs share the same hash. Since hashes are a fixed length, collisions must exist in theory. A good algorithm makes them practically impossible to find. Bigger digests give more room: a 256-bit hash has about 2256 possible values. You can explore numbers that large with the Big Number Calculator or work the odds with the Probability Calculator. Because of the birthday problem, an attacker needs roughly 2128 tries to find a collision in SHA-256, which is far beyond any computer today. MD5 collisions, by contrast, can be made in seconds on a laptop.