How to use the hash generator
- Choose Text to hash something you type or paste, or File to hash a file from your device.
- For text, start typing. The hashes update a moment after you stop, so long pastes do not slow the page down.
- For a file, click the file picker and choose the file. It is read into your browser's memory and hashed there.
- Press any result to copy that hash. Each result is a normal button, so you can also reach it with the Tab key and press Enter or Space.
- To check a download, paste the checksum published by the provider into Expected hash. The matching algorithm is highlighted, or you are told that nothing matches.

What a hash is
A cryptographic hash function turns any amount of data into a short, fixed-length value, usually written in hexadecimal. The same input always produces the same output, and changing a single character or byte produces a completely different result. The function only works in one direction: there is no formula that turns a hash back into the original data. That makes hashes useful as fingerprints. If two files have the same SHA-256 hash, you can be practically certain they are identical, without comparing them byte by byte.
For example, the text abc has the MD5 hash 900150983cd24fb0d6963f7d28e17f72 and the SHA-256 hash ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. These are the official test values from the published standards, and this tool reproduces them exactly, so you can use them to confirm it works in your browser.
How this tool calculates the hashes
Text is first converted to bytes using UTF-8, the encoding used by almost every website, programming language and command-line tool today. This matters for non-English text and emoji: the same characters stored in a different encoding are different bytes and give a different hash. The SHA-1, SHA-256, SHA-384 and SHA-512 values are produced by the Web Crypto API that is built into your browser. MD5 is not part of that API, so it is calculated by a small copy of the open-source CryptoJS library that is served from this site, not from a third-party CDN. Files are read with the browser's File API and processed the same way. Results that belong to an older input are discarded, so the values on screen always match what is currently in the box.
The SHA algorithms in the Web Crypto API are only available on secure pages (HTTPS). If you open a saved copy of this page over plain HTTP, the tool tells you that SHA hashing is unavailable instead of showing wrong values.
Which algorithm should I use?
- SHA-256 is the usual choice today. It is widely supported and has no known practical attacks. Most software downloads publish a SHA-256 checksum.
- SHA-384 and SHA-512 belong to the same SHA-2 family and produce longer values. They are used in some certificates, protocols and package managers.
- SHA-1 is no longer considered safe against deliberate tampering, because practical collisions have been demonstrated. It still appears in older systems and in Git object IDs.
- MD5 is broken for security purposes: people can deliberately create two different files with the same MD5 hash. It is still fine for spotting accidental corruption or matching a legacy checksum.
Practical uses
Verify that a downloaded installer or disk image matches the checksum on the publisher's website. Check whether two copies of a document are byte-for-byte identical. Create a stable identifier for a piece of content in a spreadsheet or database. Reproduce a value from documentation or a test case while debugging an API that signs or fingerprints data. When comparing with output from a command-line tool such as sha256sum, remember that echo adds a line break to the text, which changes the hash; use printf or echo -n instead.
Limitations
Files are loaded into memory before hashing, so the limit here is 512 MB, and very large files can be slow on phones. A plain hash is not a safe way to store passwords: password storage needs a slow, salted algorithm such as Argon2, scrypt or bcrypt, which this tool does not provide. It also does not create keyed hashes (HMAC). A matching checksum only proves that a file is the same as the one the checksum describes; it does not prove that the publisher is trustworthy, so get the checksum from the official source.
Privacy
Everything happens on your device. The text you type and the files you choose are not sent to Preslo or anyone else, and nothing is saved after you close the tab. The page itself still loads the site's usual resources, such as fonts and ads.
Frequently asked questions
Which hash algorithms are supported?
MD5, SHA-1, SHA-256, SHA-384 and SHA-512. All five are calculated at the same time for the text or file you provide.
Can a hash be reversed to get the original text?
No. Hash functions are one-way. Short or common inputs, such as simple passwords, can sometimes be found by guessing many inputs and comparing results, which is why plain hashes should not be used to store passwords.
Why is my hash different from the one another tool gives?
Usually the input is not exactly the same. A trailing space or line break, a different text encoding, or Windows versus Unix line endings all change the bytes and therefore the hash. This tool hashes exactly what is in the box, encoded as UTF-8.
How do I verify a downloaded file?
Choose File, select the download, and paste the checksum from the publisher's website into the Expected hash box. If the values are identical, the matching algorithm is highlighted. If nothing matches, the file is different from the one the checksum describes.
Is MD5 secure?
No. MD5 collisions can be produced deliberately, so it must not be used where an attacker could tamper with the data. It is still acceptable for detecting accidental corruption. Use SHA-256 or stronger when security matters.
Is there a file size limit?
Yes. Files up to 512 MB can be hashed, because the whole file is read into your browser's memory first. Large files may take a while on slower devices.
Are my text and files uploaded?
No. Hashing runs locally in your browser using the built-in Web Crypto API and a locally served MD5 script. Nothing you enter is sent to a server.