Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes.
A note on security: MD5 and SHA-1 are fast but cryptographically broken. They are fine for checksums, file fingerprinting and deduplication, but never use them for security or password storage — use SHA-256 or stronger there.
How to use Hash Generator
What this tool does
The Hash Generator computes four cryptographic digests of any input — MD5, SHA-1, SHA-256 and SHA-512 — and shows them all at once. You can hash typed text, with the digests updating live on every keystroke, or hash a file by dropping it onto the page. Each result sits in its own row with a copy button, ready to paste into a checksum file, a verification command, or a bug report. MD5 is calculated with a small JavaScript library; the SHA family uses your browser’s native Web Crypto API. Everything runs locally, so neither your text nor your files ever leave your device.
Why you might need it
Hashes are everywhere in software work. A download page publishes a SHA-256 so you can confirm a file arrived intact. A build pipeline fingerprints assets so identical files are cached and deduplicated. A database stores a hash instead of raw content to check for changes cheaply. When you need to answer “are these two things actually identical?” or “did this file download correctly?”, a hash is the fastest reliable answer. Having all four common algorithms side by side is convenient because different systems expect different ones — a vendor might publish an MD5 while a Linux package mirror publishes a SHA-256.
How to use it
- Choose an input source with the toggle: Text or File.
- In Text mode, type or paste into the box. All four digests appear instantly and refresh as you edit.
- In File mode, drop a file onto the dashed area or click it to open a file picker. The file name and size are shown while it is hashed.
- Read the four digest rows below. Click the copy icon on any row to copy that value, or compare it against a checksum you were given.
Because hashing is deterministic, the same input always produces the same digest — so you can paste a known checksum elsewhere and check it character for character.
Common pitfalls
The most common mistake is hashing the wrong representation of your data. Hashing the text “report.pdf” is completely different from hashing the contents of a file called report.pdf — use File mode when you want to verify a download. Whitespace matters too: a trailing newline or a stray space changes the digest entirely, which is often why a checksum “does not match” when the underlying file is fine. Encoding is another trap: this tool hashes text as UTF-8 bytes, so if another system used a different encoding the digests will differ. Finally, do not assume two short hashes that share a prefix are the same value — always compare the full string.
Tips and advanced use
When verifying a download, copy the published checksum, hash the file here, and compare the two digests directly — it is faster than typing a command-line tool and works on any device. For file deduplication, SHA-256 is a good balance of speed and collision resistance. If you are storing passwords, none of these algorithms is appropriate on its own: use a purpose-built password hash such as bcrypt, scrypt or Argon2, which are deliberately slow and salted. Treat MD5 and SHA-1 strictly as integrity checks for accidental corruption, never as proof of authenticity. And because every byte is processed locally, it is genuinely safe to hash confidential documents or secret strings here — nothing is uploaded, logged, or transmitted.
Frequently asked questions
Is my text or file uploaded to compute the hash?
Which hash should I use?
Why are MD5 and SHA-1 called broken?
Can I hash large files?
Why does an empty input produce no hash?
Related tools
HMAC Generator
Generate HMAC signatures with the Web Crypto API.
HTML to Markdown
Convert HTML into clean Markdown.
Markdown to HTML
Convert Markdown into HTML.
CSS Minifier
Minify CSS to shrink stylesheet size.
CSS Beautifier
Format and indent minified CSS.
JavaScript Minifier
Minify JavaScript to reduce file size.