Type a tool name, for example "keyword density" or "transcript".
Generate SHA-1, SHA-256, SHA-384, or SHA-512 hashes for any text. Computed in your browser.
This SHA hash generator turns any text you type or paste into a SHA-1, SHA-256, SHA-384 or SHA-512 hash. Pick one algorithm or all four, choose lowercase hex, uppercase hex or Base64 output, and copy the result. It suits developers, sysadmins and anyone who needs to compare or verify a checksum.
A SHA hash is a fixed-length fingerprint of data, created by one of the Secure Hash Algorithms published by NIST. The same input always gives the same hash, while a one-character change gives a completely different one.
The family includes SHA-1 (160-bit output) and the SHA-2 variants SHA-256, SHA-384 and SHA-512. Each is a one-way function: you can compute the hash from the text, but you cannot calculate the text back from the hash. That makes a SHA hash value useful for checking integrity, not for hiding information.
Three properties make hashes practical. They are deterministic, quick to compute, and extremely sensitive to small changes. Hash hello and Hello and the two results look unrelated.
Hash length depends only on the algorithm, never on the size of the input. One letter and a whole chapter produce the same number of characters.
| Algorithm | Hex length | Base64 length |
|---|---|---|
| SHA-1 | 40 | 28 |
| SHA-256 | 64 | 44 |
| SHA-384 | 96 | 64 |
| SHA-512 | 128 | 88 |
These lengths help you identify an unknown hash. A string of 64 hex characters is usually SHA-256, and 128 usually points to SHA-512.
You can create a hash in a few clicks, and the tool is free with no sign-in.
If the text box is empty, the tool asks you to enter some text instead of returning a hash.
Type hello (five lowercase letters, no space and no line break), keep SHA-256 and Hex (lowercase), then click Generate Hash. You get a 64-character result:
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Switch Output format to Hex (uppercase) and the same value appears in capitals: 2CF24DBA5FB0A30E26E83B2AC5B9E29E1B161E5C1FA7425E73043362938B9824. It is the same hash in a different notation, so a checker that ignores case will accept both.
Now choose All with lowercase hex. The SHA-1 row shows aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d, which is 40 characters. Add a single trailing space to your text and generate again: every row changes completely. That is why exact input matters when you compare against a published value.
A result is correct when it matches the expected value character for character. Use the rules below to decide what to do next.
Compare the whole string, not just the first and last few characters. If it matches, your input is identical to the original. If it does not, look for hidden whitespace, different line endings or different capitalization of the text.
SHA-256 is the usual choice for checksums, signatures and request signing. Use SHA-1 only when an older system requires it, because researchers demonstrated a practical SHA-1 collision in 2017. SHA-384 and SHA-512 give longer outputs and suit cases where a standard or protocol names them. If you also need a legacy checksum, the MD5 generator shows MD5 next to the SHA family.
Hex is the common format for checksums and command-line comparisons. Base64 is shorter and appears in HTTP headers, JSON fields and integrity attributes that start with sha256-, sha384- or sha512-. If you are building a script hash for a Content Security Policy, the CSP generator covers the policy side.
Anyone who needs a quick, exact digest of a piece of text can use it. These are typical situations:
This tool hashes text only, so for a file you use your operating system. Run one of these commands and compare the output with the publisher's value.
certutil -hashfile yourfile.zip SHA256shasum -a 256 yourfile.zipsha256sum yourfile.zipIn Python the standard hashlib module offers sha256, and in Java the MessageDigest class accepts the name SHA-256. Use this page to double-check small text values, such as a string you plan to hash in code.
Most mismatched hashes come from input differences, not from the algorithm. Work through this list first.
The tool produces plain SHA digests of the text you enter, and nothing more. It does not hash files, add salts, run repeated rounds or create keyed HMAC values.
SHA algorithms are also the wrong choice for storing passwords, because they are designed to be fast, which helps attackers who guess at scale. For password storage, use a slow, salted function such as the one in the bcrypt hash generator.
Because SHA is a fixed standard, a correct tool gives the same output as any other correct implementation. If another system disagrees, the input or the output format is almost always the cause.
Paste your text into the box above, choose an algorithm and output format, and click Generate Hash to get an exact SHA digest in seconds. For more utilities of this kind, browse the security and encryption tools.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market