Works on this device
Hash Calculator
Work out hashes of several texts at once, of raw bytes written in hexadecimal or Base64, or every hash of a file together with its size. A CRC-32 calculator gives the checksum in hexadecimal and as a number. Everything is worked out in this browser.
Calculate hashes
Check these values
Everything is worked out in this browser. Nothing is sent or saved.
The hashes will show here
Type the values or choose a file, then choose Calculate.
Hashes
How it was worked out
How to use the hash calculator
- Choose what to calculate: hashes of several texts or values, every hash of a file, or a CRC-32 checksum.
- For several texts, type one in each row and give it a name if you like. To hash a list, paste it under Or paste a list and choose Read the lines into rows: each line becomes a row.
- Choose how the values are written. Plain text is hashed as UTF-8. Choose hexadecimal or Base64 to hash the bytes they stand for.
- Choose the algorithm and the form of the hashes, then Calculate. Rows with the same hash are named in the last column.
- Copy the hashes, download them as a text file, or download the whole result as a CSV file.
What each mode gives
- Hashes of several texts or values: one algorithm, up to 200 rows. Use it to hash a list of values, to see that two texts differ, or to hash test bytes typed in hexadecimal.
- Every hash of a file: the size of the file and twelve hashes at once: MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-224, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-512, BLAKE2s-256 and CRC-32. The text can be saved as lines of a checksum file.
- CRC-32: the checksum of ZIP, PNG and gzip, in hexadecimal, as an unsigned number and as a signed 32-bit number.
- To check a file or a text against an expected hash, use the Hash Generator & Checker. For HMAC and password hashing, use the HMAC & Password Hash Calculator.
How the values are read
- Plain text: the UTF-8 bytes of the text, exactly as typed. Spaces, capital letters and line breaks count. Under More options you can hash line breaks as CR LF, as Windows saves them.
- Hexadecimal: two digits for each byte, such as
61 62 63for the letters abc. Spaces, commas, colons and 0x before a byte are allowed. - Base64: the standard alphabet with + and /, or Base64url with - and _. Spaces and line breaks are left out.
- A pasted list gives one row for each line with text. Blank lines are left out; spaces at the ends of a line are kept.
The CRC-32 used here
CRC-32 here is CRC-32/ISO-HDLC, the one of ZIP, PNG, gzip and Ethernet. Its polynomial is 0x04C11DB7, used bit-reversed as 0xEDB88320. It starts at 0xFFFFFFFF, reads the bits of each byte lowest first and ends with an XOR with 0xFFFFFFFF. The CRC-32 of the nine characters 123456789 is 0xCBF43926, its check value.
The same 32 bits can be read as a number from 0 to 4,294,967,295 (unsigned) or from −2,147,483,648 to 2,147,483,647 (signed). Both are shown, because programs differ in which one they give. CRC-32C, CRC-16 and other CRCs give other values and are not offered.
Worked example
The example rows hold apple, Apple and apple. The SHA-256 hash of apple is 3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b, and Apple gives a completely different hash. The table names the first and the third row as having the same hash, and counts 2 different hashes for 3 values.
The CRC-32 of 123456789 is cbf43926 in hexadecimal. As an unsigned number it is 3,421,780,262; as a signed 32-bit number it is 3,421,780,262 − 4,294,967,296 = −873,187,034.
Limits you should know
- A file can have at most 64 MB. Larger files need a program on your computer, such as sha256sum.
- A hash cannot be turned back into the text. Hashing a list of values, such as e-mail addresses, does not make them anonymous: anyone can hash a guessed value and compare.
- MD5 and SHA-1 are broken for security, and CRC-32 is only a checksum. Use them only where an older system needs them.
- BLAKE3, Adler-32, NTLM and other CRCs are not offered here. The NT hash of a Windows password is in the HMAC & Password Hash Calculator.