Skip to main content

Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-512 and SHA-3 hashes from text or a file (up to 4 GB), and see which algorithm to use. Runs in your browser.

Input text

Stays in your browser

Compare with a checksum

Hashes

Type or paste text above to see its MD5, SHA-1, SHA-256, SHA-512 and SHA-3 hashes.

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Free Online Hash Generator

Type or paste any text, or pick a file, to see its MD5, SHA-1, SHA-256, SHA-512 and SHA-3 hashes — entirely in your browser, with a one-click copy button for each. It helps developers compare fingerprints, create checksums, and understand whether text or a downloaded value changed.

What is a cryptographic hash?

A hash function takes any input — a password, a file, a block of text — and produces a fixed-length string of characters that acts as a fingerprint of that input. The same input always produces the same hash, but even a one-character change in the input produces a completely different hash. This makes hashes useful for verifying data integrity (confirming a file wasn't corrupted or tampered with) and, for cryptographically strong algorithms, for storing passwords without keeping the original value.

How to generate a hash online

Type or paste your text into the input box — all four hashes (MD5, SHA-1, SHA-256, SHA-512) update live as you type, with no need to click a button. Click Copy next to any hash to copy just that value to your clipboard.

Choosing the right algorithm

  • MD5 — fast, widely supported, but cryptographically broken. Fine for non-adversarial checksums; unsafe for security purposes.
  • SHA-1 — also broken for security purposes as of 2017 (a practical collision was demonstrated); still seen in legacy systems (like Git's original object hashing) but not recommended for new security-sensitive use.
  • SHA-256 — part of the SHA-2 family, currently considered secure and widely used (Bitcoin, TLS certificates, and most modern integrity/signature use cases).
  • SHA-512 — similar security profile to SHA-256 with a larger output, often faster on 64-bit systems for large inputs.
  • SHA-3 — a newer standard built differently from SHA-2. Pick it when a specification asks for SHA3-256 or SHA3-512.

Hashing a file

Open the File tab and choose a file. It is read in 4 MB pieces, so even a very large download can be checked without freezing the page, and a progress bar shows how far it is. Use Cancel to stop. Paste the checksum published next to the download into Compare with a checksumand the page tells you whether it matches. It works out the algorithm from the length, ignores capital letters, spaces and a sha256: prefix, and accepts a line copied from a SHA256SUMS file.

Common use cases

  • Verifying a downloaded file's integrity against a published checksum
  • Generating a deterministic cache key from a piece of content
  • Quickly checking whether two large text blocks are identical without a full diff

Worked example

Hashing the text hello produces MD5 5d41402abc4b2a76b9719d911017c592, SHA-1 aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d, SHA-256 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824, and a 128-character SHA-512 digest — these are the same, well-known test values you'd get from any standards-compliant hash implementation (e.g. Node's or OpenSSL's), since hashing has no room for implementation-specific variation. Change one character — hash Hello instead — and all four outputs are completely different, not just slightly different.

Common mistakes and edge cases

  • An invisible newline changes the hash. hello and hello followed by a line break are different texts and give different hashes. If a value does not match one from another tool, check for a trailing newline or space first.
  • Text is hashed as UTF-8. Accented letters, emoji and non-Latin scripts are turned into bytes with UTF-8. A tool that uses another encoding gives a different hash for the same text.
  • Windows and Unix line endings differ. A file saved with Windows line endings (CR LF) has other bytes than the same text with Unix line endings (LF), so the hashes differ even though both look identical.
  • MD5 and SHA-1 are for checksums, not for security. Collisions can be made on purpose. Use SHA-256 or stronger when the hash protects anything, and never store passwords with a plain hash.

Frequently asked questions

Is my input text uploaded anywhere when I generate a hash?
No — all four hashes are computed entirely in your browser (SHA-1/256/512 via the native Web Crypto API, MD5 via a local implementation). Nothing you type is ever sent to a server.
Which hash algorithm should I use?
For anything security-sensitive (passwords, integrity of untrusted data), use SHA-256 or SHA-512 — MD5 and SHA-1 are both cryptographically broken and shouldn't be relied on where collision resistance matters. MD5 and SHA-1 are still fine for non-security uses like generating a quick checksum or cache key.
Why is MD5 not considered secure?
Practical collision attacks against MD5 have been demonstrated since 2004 — it's possible to construct two different inputs that produce the same MD5 hash. It's still useful for non-adversarial checksums, but should never be used for passwords, signatures, or anything where an attacker might try to forge a matching input.
Can I hash a password directly with this tool?
You can, but a raw hash (even SHA-256) is not how passwords should be stored in a real system — proper password storage uses a slow, salted algorithm designed for it (like bcrypt, scrypt, or Argon2), not a fast general-purpose hash. This tool is for quick checksums and general hashing, not production password storage.
Can a hash be decoded back into the original text?
No. A hash is a fixed-length fingerprint, and many different texts are squeezed into the same short value, so the original cannot be worked out from it. People "crack" hashes by hashing many guesses and comparing, which is why short or common values are weak. Use hashes to check that a file or text is unchanged, not to hide data.

Related tools

More Security & Auth

View all Security & Auth tools →