Hash Generator

Type or paste any text and get its MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 hashes at once. Free and instant, the tool runs entirely in your browser and never uploads or stores your input.

Hash GeneratorPrivate · runs on your device
Input
Words 0Characters 0Lines 0
Hashes

Type or paste text to see its hashes.

Example: hello → SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

How to use the hash generator

There is no algorithm menu and no button to press: every supported hash is calculated together and refreshes as you type.

  1. Type or paste your text into the input box labelled Type or paste the text to hash. Spaces and line breaks count, so a trailing newline gives a completely different result.
  2. Read the Hashes list on the right. It shows MD5 (128 bits), SHA-1 (160), SHA-256, SHA-384, SHA-512 and CRC32 (32 bits), each as a hexadecimal string.
  3. Tick Uppercase hex if the system you are matching prints digests in capitals. The value is identical; only the letter case changes.
  4. Press Copy beside the row you need. Each algorithm has its own button, and the copy follows the uppercase setting.
  5. Check the note under the list, which reports how many bytes were hashed locally.

The tool hashes text only. It has no file picker, so for a download use sha256sum on Linux and macOS or certutil -hashfile file SHA256 on Windows. The text is encoded as UTF-8 before hashing, which matches most command-line tools.

What the six outputs are

A hash function turns input of any length into a fixed-length fingerprint. The same bytes always give the same digest, and a one-character change gives an unrelated one. Try hello, which produces MD5 5d41402abc4b2a76b9719d911017c592, SHA-1 aaf4c61d... and CRC32 3610a686. Change it to Hello and the MD5 becomes 8b1a9953c4611296a827abf8c47804d7. Add a newline after hello and the SHA-256 starts 5891b5b5 instead of 2cf24dba.

AlgorithmSizeHex charactersStatus
MD5128 bits32Collisions are easy to produce
SHA-1160 bits40Collision demonstrated in 2017
SHA-256256 bits64Current general-purpose choice
SHA-384384 bits96SHA-2 family
SHA-512512 bits128SHA-2 family
CRC3232 bits8Checksum, not a security hash

The SHA digests come from the Web Crypto interface in your browser, which needs a secure context (https or localhost); MD5 and CRC32 are calculated by code on the page. If SHA values do not appear, the page says why.

A hash is not encryption. Encrypted data can be restored with a key, whereas a hash cannot be undone at all, which is how a site can check a password without keeping it, provided it uses a proper password scheme. CRC32 turns up inside ZIP and PNG files and Ethernet frames as a quick check for accidental errors.

Common mismatches and safe uses

Typical jobs are comparing a downloaded installer with the checksum on the vendor page, confirming that two configuration snippets are identical to the last byte, building a cache key, and checking that a pasted API payload matches the one a colleague signed. For each, hash both inputs the same way and compare the whole string, not just the first few characters. The output length never depends on the input: one letter and a whole novel both give 64 hex characters in SHA-256.

When your hash differs from the one in a tutorial or an API, the input is almost always the cause, not the algorithm.

  • Newlines. echo hello | sha256sum hashes the word plus a newline. Use echo -n or printf to match what you typed here.
  • Encoding. Accented letters hash differently in UTF-8 and in UTF-16, which some Windows tools use by default.
  • Case. Uppercase and lowercase hex are the same number but different strings, so compare them after normalising.
  • Empty input. The tool shows a prompt instead of the hash of an empty string.

Use SHA-256 or longer for integrity checks. CRC32 suits spotting accidental corruption only, since anyone can craft a matching value. Never store passwords as a bare hash of any kind: fast algorithms can be guessed billions of times a second, so use bcrypt, scrypt or Argon2 with a salt. The tool does not calculate HMAC, SHA-3 or salted hashes. To make a password worth hashing, use the strong password generator; for random identifiers see the UUID generator, and to inspect Base64 data use the Base64 encoder and decoder.

Quick answers

Frequently asked questions

The questions people ask most, answered in plain words.

Is the hash generator safe to use with sensitive text?

Yes, in the sense that nothing leaves your device. Every digest is calculated by JavaScript in your browser and the text is never sent to a server. A hash of a weak password can still be guessed offline, so avoid pasting live credentials into any web tool.

Can I reverse an MD5 or SHA-256 hash to get the original text?

No. Hash functions are one-way, so no calculation turns a digest back into its input. Attackers guess candidate inputs and compare digests, which works against short or common text. That is why passwords need slow, salted algorithms rather than a bare MD5 or SHA-256.

Why is my hash different from the one on another website?

The inputs almost certainly differ by an invisible character. A trailing newline, Windows line endings, a leading space or a different text encoding each change the digest completely. Also compare letter case, because uppercase and lowercase hex are the same value but not the same string.

Which hash should I use for file checksums?

Use SHA-256 whenever the checksum needs to prove a file is genuine. MD5 and SHA-1 still appear on older download pages and are fine for spotting accidental corruption, but they cannot show that a file was not deliberately swapped. Note that this tool hashes pasted text, not files.

Is MD5 still safe to use?

Not for security. Practical MD5 collisions have been known since 2004 and a SHA-1 collision was shown in 2017, so neither should sign documents, verify certificates or store passwords. MD5 remains acceptable as a quick fingerprint for caching or detecting accidental changes where no attacker is involved.