Free Online Hash Generator & Checksum
Calculate MD5, SHA-1, SHA-256, and SHA-512 cryptographic hashes for text strings and local files using standard browser WebCrypto APIs.
How to Generate a Hash
Pick the algorithm first.
Choose SHA-1, SHA-256, SHA-384 or SHA-512 from the menu, and tick Uppercase output if you need capitals. A file is hashed as soon as you pick it.
Add text or a file.
Type or paste text and click Generate Hash, or click Hash a file and choose one file. Text is hashed exactly as typed, spaces included.
Copy the hash.
Click Copy Hash to put the hex on your clipboard. To try another algorithm, change the menu and generate again, or pick the file again.
Frequently Asked Questions
Answers about algorithms, file checksums, MD5 and matching other tools.
Which hash algorithms does this generator support?
It supports SHA-1, SHA-256, SHA-384 and SHA-512, with SHA-256 selected by default. All four run through your browser's Web Crypto API. MD5, SHA-3, CRC32 and HMAC are not offered, so pick one of the four SHA options.
Can I generate an MD5 hash here?
No. The Web Crypto API in browsers has no MD5, and this tool doesn't add a library for it. MD5 is also broken for security use. When a download page lists both, check the SHA-256 checksum instead, since it is the safer test.
How do I verify a file's SHA-256 checksum?
Pick SHA-256 first, then click Hash a file and choose the download. Compare the result with the checksum on the publisher's page. Letter case doesn't matter, so ABC1 and abc1 match. Any other difference means the file is damaged or not the one they published.
Why doesn't my hash match the command line?
Usually a hidden newline. echo hello | sha256sum hashes hello plus a line break, while this tool hashes only what is in the box. Use printf '%s' hello or echo -n hello instead. Line breaks typed in the box count as single LF characters.
What is the difference between SHA-256 and SHA-512?
Both belong to the SHA-2 family. SHA-256 gives a 256-bit digest, shown as 64 hex characters; SHA-512 gives 512 bits, or 128 characters. SHA-256 is the usual choice for checksums. SHA-512 has a larger margin and is often quicker on 64-bit chips.
Do I need to click Generate again after changing settings?
Yes. The algorithm menu and the Uppercase box apply to the next hash only. The label above the result shows the current menu choice, so after a change click Generate Hash again. For a file, pick the file again, because Generate rehashes the text box.
Is the hash output uppercase or lowercase?
Lowercase by default. Tick Uppercase output before you generate to get capitals, for example to match PowerShell's Get-FileHash. Hex is not case-sensitive, so 2CF24DBA and 2cf24dba are the same SHA-256 value.
Can a hash be reversed or decrypted?
No. A hash is one-way, not encryption, so no key turns it back into the text. People crack hashes only by guessing inputs and comparing results, which works on short or common passwords. That is why stored passwords need a slow hash such as bcrypt.
Is SHA-1 still secure?
Not for signatures or certificates. In 2017, researchers made two different PDF files with the same SHA-1 hash. It still catches accidental damage, and Git uses it by default. Choose SHA-256 for anything new.
How large a file can the hash generator handle?
There is no set limit. The tool reads the whole file into memory and hashes it in one pass, so the ceiling is your device's free memory. Very large files, such as multi-gigabyte disk images, may fail when memory runs out, and there is no progress bar.
Can I hash an empty string or only spaces?
No. The tool skips input that is empty or only spaces, so no result appears. For reference, the SHA-256 of an empty string is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. Text with spaces around it is hashed exactly as typed.
Is it safe to hash passwords or API keys here?
Your text and files are hashed on your device and never sent to us. Analytics record clicks like Copy and the time a hash took, never your text or file. Still, a plain SHA hash is not a safe way to store passwords; use bcrypt or Argon2.
Hash Generator for SHA-256, SHA-512 and More
Four SHA algorithms, text or file input, and hex output in either case, all hashed by your browser's built-in Web Crypto API.

Hash Text With Four SHA Algorithms
Type or paste text, pick SHA-1, SHA-256, SHA-384 or SHA-512 and click Generate Hash. Text is read as UTF-8, so accents and emoji hash the same as in Python or Node.
- SHA-1, SHA-256, SHA-384 and SHA-512
- SHA-256 selected by default
- 64 hex characters for SHA-256

Hash Any File to Check a Download
Click Hash a file and pick any file, such as an ISO, ZIP or installer. The tool hashes its raw bytes, so the result matches sha256sum, certutil or Get-FileHash.
- Any file type, one at a time
- Hashes the file's raw bytes
- Same result as sha256sum
Lowercase or Uppercase Hex
Hex comes out in lowercase by default. Tick Uppercase output before you click Generate to match tools such as Get-FileHash, which print capitals.
Built on Web Crypto
Hashes come from crypto.subtle.digest, the hashing code built into your browser. No extra library loads, and the results match Node and Python for the same bytes.
Text and Files Stay Local
Your text and files are hashed on your device and never sent to us. Analytics record clicks like Copy and Clear and the time a hash took, never what you paste.
Free, No Sign-Up
Hash as much text and as many files as you like, one at a time, with no account and no daily cap. Very large files depend on your device's memory.
What People Use a Hash Generator For
Checking downloads, testing code and fingerprinting content are the most common jobs.
File Integrity
Check that a download arrived intact. Hash the file with the same algorithm the publisher lists, usually SHA-256, then compare the result with the checksum on their page.
- Compare a SHA-256 checksum from a download page
- Spot a damaged or incomplete download
- Check ISO, ZIP and installer files
Development and Testing
Make expected values for unit tests, fixtures and debug logs. Paste the exact string, pick the algorithm and copy the hex into your code or test.
- Check what your code's SHA-256 should return
- Compare hashes across languages and systems
- Not for storing passwords: use bcrypt or Argon2
Data Fingerprinting
Use a hash as a short fingerprint for a block of text or a file. Two inputs with the same SHA-256 are, for practical purposes, identical.
- Build cache keys from file or text content
- Find duplicate files by comparing hashes
- See whether a config file has changed
Explore More Tools
Discover other free tools that work great alongside this one
Password Generator
Generate strong, random passwords
Base64 Encoder
Encode and decode Base64 strings
UUID Generator
Generate random v4 UUIDs, one or up to 100 at once
JWT Decoder
Decode and inspect JSON Web Tokens
JSON Formatter
Format, validate and minify JSON in your browser
URL Encoder
Encode and decode URL components