Free · runs in your browser

Password Hash Generator

Password Hash Generator. Type any password or text to instantly get its MD5, SHA-1, SHA-256, and SHA-512 hashes side by side. For a login system you are building, you can generate a bcrypt with a cost of 12 and a fresh random salt, then copy the result into your config.

Your values

Hashed in your browser only. Spaces, letter case and line breaks all change the hash.

Shown as the main result. Every other algorithm is listed below it.

How the input is turned into bytes. Pick Hex or Base64 to hash raw bytes. NTLM always uses the text as UTF-16LE.

Checked against every algorithm in the current output format.

Result

Selected hash (HMAC when a key is used)
—
Match check
—
MD5
—
SHA-1
—
SHA-224
—
SHA-256
—
SHA-384
—
SHA-512
—
SHA3-224
—
SHA3-256
—
SHA3-384
—
SHA3-512
—
MD2
—
MD4
—
NTLM
—
RIPEMD-128
—
RIPEMD-160
—
RIPEMD-256
—
RIPEMD-320
—
Whirlpool
—
CRC-16
—
CRC-32
—
Adler-32
—
  • No account, no logging
  • Open formulas explained below
  • Works offline once loaded

Paste a string into this MD5 hash generator, which also covers the SHA family, and you get an instant fingerprint of it: a fixed-length value you can store, match or publish. Pick MD5, SHA-1, SHA-256 or SHA-512, and the same input always returns the same result, while one changed character produces something completely different. It is a free online tool that works on plain text without sending a thing to a server.

How a fingerprint of your text is calculated

The tool feeds your input through a cryptographic hash function and returns a digest written in hexadecimal. The process is deterministic, so identical input gives an identical result every time, and it is one-way: nobody can rebuild the original string from the output. A good cryptographic hash is also collision resistant, meaning it is infeasible to find two different inputs that share one hash value. Trailing spaces and line endings change the output, which the free sha1 hash generator makes obvious when two sha1 hashes disagree.

Change a single letter and the result changes beyond recognition. That is the avalanche effect, and it is why hashes are so good at spotting edits, corrupted data or tampering. Developers and programmers also lean on it for deduplication and duplicate detection across large sets of files.

Typical jobs for a hash calculator include data integrity checks for a download, a quick SHA1 or MD5 lookup of a text snippet, and proving that two copies of a text file match without reading either one. Each of these hash algorithms trades speed for strength, so choose by the job, not by habit.

How to generate hash values step by step

Four moves are all it takes, and the hash output updates as you type.

Paste your input

Drop any text into the box: a word, a JSON snippet, a license key or a random phrase. Plain text, pasted text and typed text all hash the same way, but a random sample of text with different line endings gives a different result, and so does a trailing space.

Pick the algorithm

Choose MD5, SHA-1, SHA-256, SHA-384 or SHA-512. SHA-256 is the sensible default for general work, and the choice only becomes strict when a publisher names one hash algorithm in advance.

Read the hexadecimal output

The result appears in lowercase by default, with a switch to uppercase and a one-click copy to your clipboard. Each character is a hex digit, so the length tells you which algorithm produced it.

Compare two hashes

Paste a published value beside yours. If every character matches, the data is intact. Trim stray spaces and match the case before you compare.

Privacy: runs in your browser

Because this hash calculator is client-side, the text you type never leaves your browser. SHA variants use the Web Crypto API, MD5 uses a JavaScript routine, and your CPU does the work in any modern browser. Nothing is uploaded, and the page keeps working offline once loaded.

SHA-256 hash generator vs MD5 and SHA-512 output

This hash calculator offers five algorithms. Their outputs differ only in size and in how much security they still offer. On a legacy Drupal 7 site, the drupal password hash generator outputs the salted, iterated value stored in users.pass, cut to 55 characters.

Formula hex characters equal bits divided by four, with bars comparing MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digest lengths in hexadecimal characters
Each hexadecimal character holds 4 bits, so digest length in characters is the bit size divided by four.
SHA-256 hash generator vs MD5 and SHA-512 output
NameOutput sizeHex lengthStatus
MD5128-bit32 hex charsBroken for security
SHA-1160-bit40 hex charsWeak, legacy only
SHA-256256-bit64 hex charactersStrong, the standard choice
SHA-384384-bit96 charactersStrong
SHA-512512-bit128 charactersStrong, suits 64-bit hardware

Plain MD5 is the quickest to run, the SHA-2 pair is the safest default, and a SHA-512 hash generator can show a small performance edge on 64-bit machines. Wide tools, sometimes called an all hash generator or a checksums generator, add SHA-224, SHA-3, SHA3-256, RIPEMD, Whirlpool, BLAKE2b, CRC32, Adler32 and NTLM. The SHA-2 family covers most needs, and a hash value calculator such as this one keeps the list short on purpose.

Checking a release tag with a SHA-256 hash value

I need to know whether two copies of one release tag produce the same SHA-256 hash. Both look like build-2026.11.12-rc3, and I'd rather prove it than squint.

Stacked bar chart showing how many MD5, SHA-256 and SHA-512 bits change when one full stop is added to the input string
Adding one full stop to the invoice note flips 60 of 128 MD5 bits, 121 of 256 SHA-256 bits and 259 of 512 SHA-512 bits.

I open the hash generator, paste the label from the ticket, and pick SHA-256 first. The 64 hex characters begin 9b91b8b4e2848081. Then I paste the script's copy. The result begins 04e901beefef9982, so the strings differ even though they look identical on screen.

The cause turns up once I flip to MD5 for a cheap second opinion: 0470020d397c for the ticket text and a4d7335c8891 for the script. Different again, and a trailing space is the only difference, which is exactly the avalanche effect at work. Deleting that space brings the digest back to 9b91b8b4e2848081, my cross-check that the two tags are the same.

Checking a release tag with a SHA-256 hash value
InputSHA-256 starts withMD5 starts with
build-2026.11.12-rc39b91b8b4e28480810470020d397c
Same tag plus a trailing space04e901beefef9982a4d7335c8891
Capital B instead of bb8e962f37cb27540a5e92ec484b7

My judgement: the number to watch is not how different the hashes look, since any change scrambles them, but whether two checks agree. A mismatch tells me to hunt for hidden characters, case or line endings, not to suspect an attack. For this job MD5 is enough, because nobody is forging a release label. If the same check guarded a signed installer, I would use SHA-256 and compare the full 64 characters, not the first sixteen. Next step: strip the space from the stored string, re-run the hash generator once, and confirm both SHA-256 values match.

Why an MD5 or SHA-1 digest is broken

Attackers can craft two different inputs that produce one MD5 hash, a collision attack that was practical by 2004. SHA-1 fell to the same kind of attack in 2017, and both are now legacy choices. A pre-image attack, which hunts for an input behind a given hash, is harder, yet neither of them should anchor security, trust or certificates today.

They stay fine for low-stakes jobs such as cache keys and Gravatar-style avatar IDs. For digital signatures or anything else a stranger might forge, choose SHA-256 or SHA-512.

Hash function vs encryption, bcrypt and Argon2

Hashing is not encryption. When you encrypt, plaintext becomes ciphertext that a key can decrypt again; a hash has no key and no way back. It is not encoding either, and it is not password storage: fast hashes invite brute force guessing, and rainbow tables or other precomputed tables crack unsalted values in seconds.

Leaked passwords stored as fast hashes are the first to fall, so keep passwords in a slow password hash instead, such as bcrypt, scrypt or Argon2. Each adds a unique random salt to every entry, a step called salting, and its deliberate cost makes mass guessing impractical. This tool does not produce salted password hashes.

Common uses for a file hash

Publishers print a hash beside their downloads so you can confirm nothing changed on the way. The same trick covers backup checks, duplicate files and batch hashing of whole folders. After file hashing, many tools export CSV, JSON or a PDF report for an audit, compliance paperwork or forensic analysis; CSV opens in any spreadsheet, JSON suits scripts, and a CSV column of names beside hashes makes a tidy record. Save the CSV with the date so the next audit can reuse it.

Verify file integrity after a download

Hash the file you fetched, then compare it with the published checksum from the vendor. A match shows no corruption occurred. Run sha256sum ubuntu.iso on an Ubuntu ISO and set the result beside a download checksum in the vendor's checksum file; a mismatch means you should not trust the image.

MD5 for deduplication

MD5 is still handy for spotting identical files or building an index in MySQL, because speed matters more there than resistance to attack. Beyond that, Git commits, TLS, digital certificates and blockchain ledgers all rest on hashes.

Hash checker tips and common hashing mistakes

  • Storing a user's password as plain SHA-256 with no salt, which is a security hole.
  • Trusting MD5 or SHA-1 where an attacker could pick the input text.
  • Comparing a hex string after changing its text or case, so a good file looks bad.
  • Hashing twice for extra randomness; you only get a second predictable result.
  • Expecting to reverse a hash and read your files back.

Frequently Asked Questions

Is it safe to use this tool with real passwords?
Yes — all hashing is performed entirely within your browser using JavaScript. No data is transmitted to any server, logged, or stored anywhere. That said, as a best practice, avoid entering production passwords into any online tool. Use test or placeholder values when exploring hash outputs.
Which hashing algorithm should I use for passwords?
For storing user passwords, bcrypt, scrypt, or Argon2id are the recommended choices because they are intentionally slow and memory-hard, making brute-force attacks impractical. SHA-256 and SHA-512 are general-purpose cryptographic hashes — fast by design — which makes them unsuitable for password storage without additional key-stretching. Never use MD5 or SHA-1 for password hashing.
Can I decrypt or reverse a password hash?
No. Cryptographic hash functions are one-way by design — it is computationally infeasible to recover the original input from its hash. What attackers can do is try billions of guesses (brute force or dictionary attacks) and compare results. This is exactly why slow algorithms like bcrypt exist: they make each guess expensive.
What is the bcrypt cost factor and what value should I use?
The cost factor (also called work factor) controls how many iterations bcrypt performs internally — each increment doubles the hashing time. OWASP recommends a minimum cost factor of 10, which typically takes around 100ms on modern hardware. Use 12 or higher for high-security applications. Avoid values below 8 outside of unit testing.
What is the difference between SHA-256 and SHA-512?
Both are part of the SHA-2 family and are considered cryptographically secure. SHA-256 produces a 256-bit (64-character hex) output, while SHA-512 produces a 512-bit (128-character hex) output. SHA-512 offers a larger security margin and can actually be faster on 64-bit hardware. For most use cases either is fine; SHA-256 is more widely supported.
Is MD5 still safe to use?
MD5 is broken for security-sensitive purposes. Collision attacks against MD5 have been demonstrated in practice, meaning two different inputs can produce the same hash. It should never be used for password hashing or digital signatures. MD5 is still acceptable for non-security purposes like checksums or cache keys where collision resistance is not required.
Why does the same bcrypt password produce a different hash each time?
bcrypt incorporates a random salt automatically. The salt is embedded in the resulting hash string, which is why two hashes of the same password look different but can both be verified against that password. This prevents rainbow table attacks. When verifying, you pass both the plaintext and the original hash — the algorithm extracts the salt from the hash and recomputes.
What does "hash length" mean in the output?
Hash length refers to the number of characters in the hex-encoded (or bcrypt-encoded) output string. For example, MD5 always outputs 32 hex characters (128 bits), SHA-256 outputs 64 characters (256 bits), and SHA-512 outputs 128 characters (512 bits). bcrypt outputs a fixed 60-character string in its own encoding format, which includes the algorithm version, cost factor, and salt.

About the author

Vinitha Pu

Founder and designer

Vinitha Pu is a graphic designer based in Palakkad, Kerala, who builds free, privacy-friendly browser tools. She studied Textile and Apparel Design at Avinashilingam University and completed a C-Tech in Graphic Design at Image Creative Education in 2025. She designs, builds and maintains the password generators, strength checkers, hash tools and security calculators on PasswordHive.

  • Content author: Vinitha Pu
  • Fact checked by: Vinitha Pu. Each tool's output is checked against official test vectors or a reference implementation, and every strength and crack-time figure against the formula it uses, before it goes live.
  • Published Updated