bytekit

Hash Generator

Create MD5, SHA-1, SHA-256 and SHA-512 hashes of any text or file, and check a download against its checksum. Everything runs in your browser, so nothing is uploaded anywhere.

  • Free
  • No sign-up
  • Runs in your browser
0 bytes (UTF-8)

Hashes

  • MD5128 bits · Checksums only. Broken for security.
    ...
  • SHA-1160 bits · Legacy. Not safe against collisions.
    ...
  • SHA-256256 bits · The modern default.
    ...
  • SHA-512512 bits · Longer SHA-2 output.
    ...

Paste the checksum from a download page. Any matching algorithm is highlighted above.

Hashes are calculated on your device. SHA hashes use your browser's built-in Web Crypto API and MD5 runs in this page. Your text and files are never sent anywhere.

What it is for

A hash function turns any input into a short, fixed-length fingerprint. The same input always gives the same hash, and changing even one character gives a completely different one. This tool calculates MD5, SHA-1, SHA-256 and SHA-512 hashes for text and files.

  • Verify that a downloaded file matches the checksum on the publisher's website.
  • Get the SHA-256 or MD5 of a string for a test, a cache key or an API signature.
  • Compare two files or two pieces of text without reading them line by line.
  • Check what a legacy system stores when it saves MD5 or SHA-1 values.

How to use it

  1. Choose Text and type or paste your input, or choose File and pick or drop a file.
  2. Read the MD5, SHA-1, SHA-256 and SHA-512 hashes, which appear instantly.
  3. Switch between Hex and Base64 output, and tick Uppercase if you need capital letters.
  4. To verify a file, paste the expected checksum into Compare with a known hash and look for the Match badge.

Examples

Hash a short word

You enter

hello

You get

MD5: 5d41402abc4b2a76b9719d911017c592 SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Hex output in lowercase. Hello with a capital H gives completely different hashes.

The empty string

You enter

(nothing)

You get

MD5: d41d8cd98f00b204e9800998ecf8427e SHA-256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

Worth recognising: if you see these values, the input was empty.

Good to know

  • Hashes update as you type, and all four algorithms are calculated at once so you can copy the one you need.
  • Switch to File to hash a download without uploading it, then paste the published checksum into the compare box.
  • Text is hashed as UTF-8, which is what most programming languages and command-line tools use.
  • MD5 and SHA-1 are fine for checksums but are broken for security. Use SHA-256 or SHA-512 for anything that must resist tampering.

Limits and disclaimers

  • A hash is not encryption. It cannot be reversed, but short or common inputs such as passwords can be found by guessing, so never store passwords as plain MD5 or SHA hashes. Use bcrypt, scrypt or Argon2 instead.
  • MD5 and SHA-1 have known collision attacks: two different inputs can be made to share a hash. Do not rely on them for signatures or security checks.
  • Line endings and invisible characters change the hash. Text copied from Windows (CRLF) and from Linux (LF) will not match.
  • Files are read fully into memory, so very large files (over 512 MB) are not supported and big files may take a moment.

ByteKit is provided as is, for convenience. Check any result that matters before you use it in production, and keep passwords, keys and personal data out of any website you do not control.

MD5 vs SHA-1 vs SHA-256

All four algorithms turn any input into a fixed-length fingerprint. They differ in length, speed and how hard they are to fool.

AlgorithmOutputCommon usesCollision-safe
MD5128 bits · 32 hex charsFile checksums, cache keys, legacy systemsNo
SHA-1160 bits · 40 hex charsGit object IDs, older certificatesNo
SHA-256256 bits · 64 hex charsDownloads, signatures, blockchains, APIsYes
SHA-512512 bits · 128 hex charsExtra margin, fast on 64-bit CPUsYes
  • To check a download on your own computer, run shasum -a 256 file on macOS or Linux, or certutil -hashfile file SHA256 on Windows.
  • A collision means two different inputs with the same hash. Researchers can create them on purpose for MD5 and SHA-1, which is why they are no longer used for security.
  • Hashing a password with plain SHA-256 is not enough, because it is fast to guess. Password storage needs a slow, salted algorithm such as bcrypt or Argon2.

Related tools

Questions people ask

Can a hash be decrypted back to the original text?

No. Hashing is one-way by design. Websites that claim to decrypt MD5 simply look the hash up in a huge list of hashes of common words and passwords.

Which hash should I use?

Use SHA-256 for anything new. Use MD5 or SHA-1 only when another system asks for them, for example to compare with an existing checksum.

Why does my hash differ from the one in my terminal?

Usually because of a trailing new line. echo hello | md5sum hashes hello plus a new line. Use echo -n hello to hash the same text as this tool.

Are my files uploaded?

No. Files and text are hashed on your device using your browser's Web Crypto API. Nothing leaves your computer, which you can confirm in the Network tab.

What is the difference between hex and Base64 output?

They are two ways of writing the same bytes. Hex uses 0-9 and a-f and is what checksum pages usually show. Base64 is shorter and is common in HTTP headers such as Content-MD5 or Subresource Integrity.

Guides

Longer reads from the ByteKit blog that go with this tool.