Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 and SHA-3 hashes from text or a file (up to 4 GB), and see which algorithm to use. Runs in your browser.
Input text
Stays in your browserCompare with a checksum
Hashes
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Free Online Hash Generator
Type or paste any text, or pick a file, to see its MD5, SHA-1, SHA-256, SHA-512 and SHA-3 hashes — entirely in your browser, with a one-click copy button for each. It helps developers compare fingerprints, create checksums, and understand whether text or a downloaded value changed.
What is a cryptographic hash?
A hash function takes any input — a password, a file, a block of text — and produces a fixed-length string of characters that acts as a fingerprint of that input. The same input always produces the same hash, but even a one-character change in the input produces a completely different hash. This makes hashes useful for verifying data integrity (confirming a file wasn't corrupted or tampered with) and, for cryptographically strong algorithms, for storing passwords without keeping the original value.
How to generate a hash online
Type or paste your text into the input box — all four hashes (MD5, SHA-1, SHA-256, SHA-512) update live as you type, with no need to click a button. Click Copy next to any hash to copy just that value to your clipboard.
Choosing the right algorithm
- MD5 — fast, widely supported, but cryptographically broken. Fine for non-adversarial checksums; unsafe for security purposes.
- SHA-1 — also broken for security purposes as of 2017 (a practical collision was demonstrated); still seen in legacy systems (like Git's original object hashing) but not recommended for new security-sensitive use.
- SHA-256 — part of the SHA-2 family, currently considered secure and widely used (Bitcoin, TLS certificates, and most modern integrity/signature use cases).
- SHA-512 — similar security profile to SHA-256 with a larger output, often faster on 64-bit systems for large inputs.
- SHA-3 — a newer standard built differently from SHA-2. Pick it when a specification asks for SHA3-256 or SHA3-512.
Hashing a file
Open the File tab and choose a file. It is read in 4 MB pieces, so even a very large download can be checked without freezing the page, and a progress bar shows how far it is. Use Cancel to stop. Paste the checksum published next to the download into Compare with a checksumand the page tells you whether it matches. It works out the algorithm from the length, ignores capital letters, spaces and a sha256: prefix, and accepts a line copied from a SHA256SUMS file.
Common use cases
- Verifying a downloaded file's integrity against a published checksum
- Generating a deterministic cache key from a piece of content
- Quickly checking whether two large text blocks are identical without a full diff
Worked example
Hashing the text hello produces MD5 5d41402abc4b2a76b9719d911017c592, SHA-1 aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d, SHA-256 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824, and a 128-character SHA-512 digest — these are the same, well-known test values you'd get from any standards-compliant hash implementation (e.g. Node's or OpenSSL's), since hashing has no room for implementation-specific variation. Change one character — hash Hello instead — and all four outputs are completely different, not just slightly different.
Common mistakes and edge cases
- An invisible newline changes the hash.
helloandhellofollowed by a line break are different texts and give different hashes. If a value does not match one from another tool, check for a trailing newline or space first. - Text is hashed as UTF-8. Accented letters, emoji and non-Latin scripts are turned into bytes with UTF-8. A tool that uses another encoding gives a different hash for the same text.
- Windows and Unix line endings differ. A file saved with Windows line endings (CR LF) has other bytes than the same text with Unix line endings (LF), so the hashes differ even though both look identical.
- MD5 and SHA-1 are for checksums, not for security. Collisions can be made on purpose. Use SHA-256 or stronger when the hash protects anything, and never store passwords with a plain hash.