Hash Generator
Create MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text or file.
Or choose a file to get its checksum:
Text and files are hashed in your browser and are never uploaded.
How to create a hash
- Type or paste your text into the box. The hashes appear as you type.
- Or choose a file to get the hashes of the whole file, which are also called checksums.
- Copy the hash you need with its Copy button. Use the uppercase option if your system expects capital letters.
What is a hash?
A hash is a short fixed-length fingerprint of data. The same input always gives the same hash, and the smallest change in the input gives a completely different hash. It cannot be turned back into the original data. This makes hashes useful for checking that a download was not damaged or changed, for finding duplicate files, and as one step in storing passwords or signing data.
Which algorithm should I use?
- MD5 and SHA-1 are old. They are fine for spotting accidental changes or comparing files, but they are broken for security, because different data can be made to give the same hash. Do not use them to protect anything important.
- SHA-256 is the usual modern choice for checksums and for most programs.
- SHA-384 and SHA-512 give longer hashes and are used where more strength or a certain standard is required.
Good to know
- A hash is not encryption. Nobody can decrypt it, but short or common inputs such as simple passwords can be guessed by trying many options. Never store passwords with a plain hash. Use a password hashing method such as bcrypt or Argon2 in your own system.
- To check a download, compare the hash shown here with the one published by the file's author. If they differ even by one character, the file is not the same.
- Text is hashed as UTF-8. A hash made by another tool may differ if it uses a different text encoding or adds a line break at the end.
- To create random identifiers use the UUID Generator, and for random passwords use the Password Generator.
Questions about hashes
Is my text or file uploaded? No. The hashes are made in your browser. Only the small MD5 script is downloaded from the internet.
Why does my hash differ from another website? The input must be exactly the same, including spaces, line breaks and the text encoding. A trailing new line changes everything.
How big a file can I hash? Up to 500 MB, but a very large file may be slow on a phone because the whole file is read into memory.