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. The bcrypt generator gives you a copy-ready result instantly, with no account required.

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, press a button, and this MD5 hash generator, with SHA-256, SHA-512 and bcrypt alongside, turns it into a fixed-length digest you can copy, compare and share. Because it runs in your browser, the text you type stays on your device, so you can safely check an MD5, SHA-256 or SHA-512 value for a config key, a download or a test fixture without sending anything to a server.

What a Hash Calculator Does With Your Text

A hash function reads any amount of input and returns a short fingerprint of a fixed size. A cryptographic hash function adds three promises: the same input always gives the same hash value, the process is a one-way function you cannot run backwards, and it is collision-resistant, meaning nobody can practically find two different messages that share a cryptographic hash. The sha1 hash generator is completely free to use, with no rate limits, watermarks, or hidden restrictions.

Hashing is not encryption. Encryption is built to be reversed with a key, while a hash has nothing to reverse: the only way to recover the original is to guess candidate inputs and check whether their digest matches. That is why a hash calculator is useful for file integrity and data integrity checks, for comparing two values without storing either one, and as a building block inside signatures and certificates.

Checksum Basics: Fingerprints, Digests and Checksums

People use the words digest, fingerprint, checksum and hash almost interchangeably. Strictly, a checksum such as CRC32 or Adler32 catches accidental damage but is not meant to resist an attacker, while a cryptographic hash is designed to resist deliberate tampering. Both produce a short, fixed-length answer, which is why one tool can show them side by side. This page does exactly that: the all-algorithms view lists CRC32 next to MD5 and SHA-256, so you see a checksum and a cryptographic digest for the same input.

How to Generate a Hash Online in Four Steps

  1. Paste your text or string into the input box. The result updates as you type.
  2. Pick the algorithm: MD5, SHA-1, SHA-256, SHA-384, SHA-512 or bcrypt. SHA-256 is the safest default for general checks.
  3. Choose the input encoding (UTF-8, Hex or Base64) and the output format, lowercase or uppercase hexadecimal.
  4. Read the hash output, then use the clipboard button to copy it, or paste a published value to compare it.

To generate all hashes for one input at once, switch on the all-algorithms view. This all hash generator mode computes MD5, SHA-1, SHA-2, SHA3, CRC32, Whirlpool, RIPEMD and NTLM together, which helps when you are not sure which one a system expects and want a quick hashes calculator that lists every candidate. No ads, no sign-up, and it is free.

Think of it as a hash calculator for plain text: type a sentence, a JSON snippet or a licence key, and the text is converted to bytes before any algorithm touches it. Short text and long text produce the same digest length, and empty text still has a valid digest. That conversion happens at the paste step above, so identical text always gives a repeatable answer.

Hash Verifier: Compare Two Values Safely

A hash verifier checks a published value against the one you computed. Trim trailing spaces, normalise letter case and confirm the same line endings before you decide the two strings differ, because those small changes alter every character of the result.

Hash Algorithms Compared: MD5, SHA-1, SHA-2, SHA3 and Bcrypt

Every hash algorithm trades speed, output size and strength differently. The table lists the ones you will meet most often, with their sizes and where each still belongs in 2026. Use the free pbkdf2 hash generator to get a result in seconds — right in your browser.

Hash Algorithms Compared: MD5, SHA-1, SHA-2, SHA3 and Bcrypt
AlgorithmOutput sizeHex charactersStatus
MD5128-bit32Broken for security, fine for cache keys
SHA-1160-bit40Broken, legacy Git objects only
SHA-256256-bit64Standard for TLS and blockchain
SHA-384384-bit96Strong, used in some TLS suites
SHA-512512-bit128Strong, quick on 64-bit hardware
Bcrypt, Scrypt, Argon2VariesVariesBuilt for password hashing

The hex length follows directly from the bit size, because each hexadecimal character carries four bits:

$$\text{hex characters} = \frac{\text{output bits}}{4}$$

So a 256-bit SHA-256 digest is \(256 \div 4 = 64\) characters, and a 512-bit SHA-512 digest is 128. SHA-256 and the rest of the SHA-2 family are specified by NIST in FIPS 180-4.

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.

MD5 Use Cases That Are Still Fine

MD5 is still handy for deduplication, cache keys and content identifiers, where nobody is attacking the value. Gravatar, for example, keys an avatar by the MD5 of an email address. Web developers and programmers also meet MD5 in older MySQL schemas and other databases, and an NTLM hash is a close relative in older Windows systems. Never lean on an MD5 hash where collisions or a pre-image attack would matter.

SHA-256 and SHA-512 for Integrity

Pick SHA-256 or SHA-512 in this tool when a digest guards a release, and keep MD5 for labels. Different cryptographic hashes suit different jobs, and a quick hash calculator run on both versions of a text file shows immediately whether they differ.

Choose SHA-256 or SHA-512 for anything trust related. Both are the sensible pick for a digital-signature workflow, and a SHA-512 run can be quicker than SHA256 on 64-bit machines. SHA-1 (often written SHA1), SHA-384 and SHA3 complete the family you can pick from.

Worked Example: Hashing an Invoice Note

Suppose you tag an approved invoice with the string Invoice-48213 approved, 22 characters in UTF-8. Here is what this online tool returns, in lowercase hex:

  • MD5: dbeb04796c68037879331ab253091b03
  • SHA-1: e166f4904f4263cc3e998504de31dda6d2abd34c
  • SHA-256: 207f81a6ff6c7f4938f352c618ad66e433feb25e2ce853e7e1257a4284607f75
  • CRC32: f1cacb13

Now add a single full stop, Invoice-48213 approved., and the SHA-256 becomes c88f6b5bc7bc72e5bf703a1019ef48ef9fca49b26084d1d67cc04da21e7bed60. Of the 256 bits, 121 flipped, and in MD5 60 of 128 flipped. This is the avalanche effect: a tiny edit scrambles the whole digest, which is what lets you spot a file that was tampered with or corrupted, and confirm one is unmodified.

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.

Download Checksum and File Checksum Checks

Publishers often list a SHA-256 next to a download. Compute the file checksum of what you saved, then compare it with the published one. A match means your copy is intact. This tool hashes pasted text, so compute the file's SHA-256 with your platform's utility and paste the published value here to compare it with a text digest. This download checksum habit is also how Git and release pages let you verify what you fetched.

Checking a Staging Key With the Online Hash Calculator

Dana, a backend developer, is rotating a staging credential and has to prove to a teammate that both of them hold the same secret without pasting it into chat. The secret is staging-api-key-2291, 20 characters. Instead of sharing it, Dana opens the hash calculator, sets the input encoding to UTF-8, selects SHA-256 and pastes the key.

The tool returns 08473be50d7df21f6eee8d7b1bbe179678b48ef915621dd812f0674cf2d410ae, 64 hexadecimal characters, which matches the 256 ÷ 4 rule. Dana posts only that digest in the ticket. Her teammate runs the same string through the same tool and gets 1c3be52aec706b5a43d6eed1f477ae40bde574e4e14a8c194c126b22439fcf63, which does not match.

Nothing is wrong with the algorithm, so Dana checks the input instead. The teammate copied the key from a terminal and it carried a trailing newline, a 21st byte. Hashing staging-api-key-2291 plus \n gives exactly the second value. After trimming the newline, both people see 08473be5…f2d410ae and the check passes.

The result also settles a decision. SHA-256 is fine for comparing two copies of a secret, since it is a published standard in NIST FIPS 180-4 and has no known practical collisions. It would not be acceptable for storing user logins, so Dana leaves the application's bcrypt cost factor of 12 untouched. The next step is to commit the digest to the rotation checklist and delete the plain key from the ticket thread.

Why Input Encoding Changes the Hash Output

A hash works on bytes, not on how characters look. The same visible word can give different digests under UTF-8 and UTF-16, and Hex or Base64 modes decode your input into bytes first instead of hashing the visible symbols. Unicode normalisation, line endings and letter case change the result too. When your number must match another system, confirm the exact encoding on both sides.

HMAC and Your Secret Key

HMAC combines a hash with a secret key to authenticate a message. A plain digest only shows that content changed, whereas an HMAC also proves that the sender knew the key. This makes it the standard choice for authentication of API requests and webhooks. In this tool, enable HMAC and enter the key beside the message; the output has the same length as the plain digest.

Password Hashing: Why a Bcrypt Hash Generator Beats SHA-256

Fast hashes are a weakness for passwords, and reused passwords make a leaked table even more useful to attackers. A GPU can try billions of SHA-256 guesses per second, so a stolen table of fast hashes falls to brute force quickly, and even a modest brute-force rig can test every short text password in hours. Proper password hashing uses a slow, salted scheme: bcrypt, Scrypt or Argon2. Bcrypt lets you set the cost factor, the work factor that doubles the time for each step up, and returns a 60-character password hash that embeds the salt.

Bcrypt Verifier and Password Storage

Choose the bcrypt option, set the cost, and use the verify field to check an attempt against a stored hash. For safe password storage, keep one per-user salt and a deliberate cost for each account, and verify a login by re-hashing the attempt and comparing it. Run any production code through trusted libraries rather than hand-rolled logic, and stop using weak hashing algorithms such as plain MD5, SHA1 or SHA-256 for this job. The same security logic applies if you paste sensitive data such as credit card numbers into any tool: a quick hash is not protection.

Common Hashing Mistakes From Developers

These are the slips people make most often when they run this tool or any similar one.

  • Hashing twice to add randomness. Hashing a hash only gives you another deterministic digest.
  • Expecting to reverse a hash. A digest cannot be reversed; sites that claim otherwise are only looking up common inputs.
  • Comparing hex strings without normalising case, then wondering why two correct values differ.
  • Using a hash where you need encryption, or a quick hash where you need a salted password hash.
  • Treating checksums like CRC32 as proof against an attacker.

Hash Tool Checklist for Developers

Before you ship, do a quick testing pass in this tool: confirm the algorithm, the encoding, the case and, for bcrypt, the cost. Among developer tools, a good one computes everything with the Web Crypto API so your secure input never leaves the page. When you calculate or compute a digest for a file or several files elsewhere, record the algorithm beside the value so others can verify it. Keep any secret cryptography key and web credential out of shared storage.

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