Hash Generator - MD5, SHA-1, SHA-256 & SHA-512 Online
Compute the MD5, SHA-1, SHA-256, and SHA-512 hex digests of any text at once — entirely in your browser.
Type or paste text and click Generate. The MD5 digest appears instantly; the SHA family is computed with the browser's Web Crypto API a moment later. Nothing is sent to a server.
Hash Generator - MD5, SHA-1, SHA-256 & SHA-512 Online
Compute the MD5, SHA-1, SHA-256, and SHA-512 hex digests of any text at once — entirely in your browser.
Privacy: hashing happens locally on your device. The text you enter is never uploaded, stored, or logged.
How it works: a hash function maps input of any length to a fixed-size digest — 128 bits for MD5, 160 for SHA-1, 256 for SHA-256, 512 for SHA-512 — shown here as hexadecimal.
About the hash generator
A cryptographic hash function takes an input of any length and produces a fixed-size fingerprint called a digest. The same input always yields the same digest, while changing even a single character produces a completely different result — the avalanche effect. Hashes are one-way: there is no feasible way to reconstruct the original text from its digest. Those three properties make hashing the workhorse behind file integrity checks, digital signatures, password storage, cache keys, deduplication, commit identifiers, and countless API signing schemes.
This hash generator computes four widely used digests side by side. MD5 produces a 128-bit digest (32 hex characters) and is calculated instantly in pure JavaScript. SHA-1 (160 bits), SHA-256 (256 bits), and SHA-512 (512 bits) are computed with the Web Crypto API built into every modern browser, which delegates to fast, well-audited native code; their results fill in a moment after you click Generate. The text is encoded as UTF-8 before hashing, so accented characters, emoji, and CJK text all hash exactly the way command-line tools such as md5sum and sha256sum treat the same bytes. Note that those tools often hash a trailing newline as part of a file — if your digest differs from a file checksum by "one character of input", a newline is the usual suspect.
Which algorithm should you use? MD5 and SHA-1 are cryptographically broken for collision resistance: researchers can construct two different inputs sharing the same digest, so neither should be used for signatures, certificates, or any security decision. They remain common as fast checksums for accidental-corruption detection and as legacy identifiers in existing systems, which is why the tool still offers them. SHA-256, part of the SHA-2 family, is the current general-purpose standard — it is what TLS certificates, blockchain systems, and most API signature schemes rely on. SHA-512 offers a larger digest and is often faster on 64-bit hardware. For storing passwords, none of these are appropriate on their own: use a deliberately slow, salted algorithm such as bcrypt, scrypt, or Argon2 instead.
Everything in this tool runs inside your browser tab. The text never leaves your device, which makes it safe to hash secrets, internal identifiers, or customer data while debugging. Use the uppercase toggle to match systems that expect capitalized hex, and the per-algorithm copy buttons to grab a single digest without selecting it manually. Typical tasks include verifying a download against a published checksum, generating deterministic cache keys or ETags, comparing configuration blobs across environments, and reproducing the exact digest an API expects when signing a request.
Hash generator examples
Well-known digests you can reproduce by typing the input and clicking Generate.
| Input | Digest | Note |
|---|---|---|
| abc (MD5) | 900150983cd24fb0d6963f7d28e17f72 | A classic test vector from the MD5 specification. |
| abc (SHA-256) | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad | The official SHA-256 test vector for the three-byte message. |
| The quick brown fox jumps over the lazy dog (MD5) | 9e107d9d372bb6826bd81d3542a419d6 | Change the final period-free sentence by one letter and the digest changes entirely. |
| Empty string (SHA-256) | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | Even zero bytes of input have a well-defined digest — this one appears in logs surprisingly often. |
How to generate a hash
- Type or paste your text into the input box. It is hashed as UTF-8 bytes, exactly as command-line checksum tools treat the same content.
- Click Generate. The MD5 digest appears immediately and the SHA-1, SHA-256, and SHA-512 digests fill in as the Web Crypto API finishes.
- Toggle uppercase output if the system you are matching expects capitalized hexadecimal.
- Use the copy button next to any algorithm to put that digest on your clipboard.
- Click Clear to reset the input and results before hashing something else.
Hash generator FAQ
Is it safe to hash sensitive text here?
Yes. All hashing runs locally — MD5 in JavaScript and the SHA family through your browser's built-in Web Crypto API. The input is never transmitted, stored, or logged, and the page keeps working if you go offline after loading it.
Why does my digest differ from md5sum or sha256sum on a file?
File checksum tools hash the file's exact bytes, which usually include a trailing newline that you did not paste here. Line endings matter too: Windows CRLF and Unix LF hash differently. Reproduce the file's bytes exactly — including the final newline — and the digests will match.
Are MD5 and SHA-1 still safe to use?
Not for security. Both have practical collision attacks, so they must not protect signatures, certificates, or passwords. They remain acceptable as fast checksums for detecting accidental corruption and as identifiers in legacy systems that already depend on them.
Can I reverse a hash to get the original text?
No. Hash functions are one-way by design; the only generic attack is guessing inputs and comparing digests. Short or common inputs can be found in precomputed rainbow tables, which is another reason plain hashes are unsuitable for password storage.
Which algorithm should I pick for new work?
SHA-256 is the safe default for integrity checks, signatures, and API signing; SHA-512 is equivalent security with a longer digest and is often faster on 64-bit CPUs. For passwords, use a dedicated slow KDF such as bcrypt, scrypt, or Argon2 rather than any plain hash.
Does uppercase versus lowercase change the hash?
Changing the case of the INPUT produces a completely different digest, because different bytes go in. The uppercase toggle here only changes how the OUTPUT hex is displayed — A-F versus a-f represent the same value, and most systems compare hex case-insensitively.