- Home
- Generators & Encoders
- Hash Generator
MD5, SHA-1 & SHA-256 Hash Generator
Compute MD5, SHA-1 and SHA-256 checksums of text in your browser. Nothing is sent to the server.
What it is for?What it is for?
A hash turns any text into a short fixed-length fingerprint. The same input always gives the same value, and a one-letter change gives a completely different one. Use this page to compare a value with a checksum from documentation, build a cache key, or check what your code should produce. The three digests update as you type.
Checksums, not passwords
MD5 and SHA-1 are fine for checking that a file or a string did not change. They are too weak to store passwords. SHA-256 is the one to prefer for a new checksum. The digest is of the UTF-8 bytes, so ç and emoji are included.
For passwords, use a slow algorithm made for them, such as bcrypt or Argon2, through your framework.
Example
The text abc gives MD5 900150983cd24fb0d6963f7d28e17f72 and SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. Type it in and you should see the same values.
Why my hash does not match
- A trailing newline. echo abc in a shell adds one; use echo -n or printf when you compare.
- Line endings. Text copied from Windows may have CRLF instead of LF, which changes every byte after it.
- Spaces at the start or end, or a different character encoding than UTF-8.
- Case. Hex digests are the same value in upper or lower case; the Uppercase option only changes how they are shown.
This page hashes text that you type or paste. It does not read files.
It stays in the browser
The hashes are calculated in this tab. The text is not sent to a server.