Skip to content
APK Peer

Hash Generator (MD5, SHA-256)

Free · runs in your browser · nothing uploaded

Quick answer

This hash generator calculates the MD5, SHA-1, SHA-256 and SHA-512 hashes of any text as you type, using UTF-8 encoding. Copy any hash with one tap. It's useful for checking checksums, comparing values and learning how hashing works. To hash a file such as an APK, use the file hash checker instead.

MD5
—
SHA-1
—
SHA-256
—
SHA-512
—

MD5 and SHA-1 are fine for checksums but are no longer safe for passwords or signatures.

How to generate a hash

  1. Type or paste text into the box.
  2. MD5, SHA-1, SHA-256 and SHA-512 hashes appear instantly, updating as you type.
  3. Tap Copy next to the one you need.

The text is encoded as UTF-8 before hashing, which matches most programming languages and command-line tools.

Which hash should you use?

AlgorithmLengthUse today
MD532 hex charactersLegacy checksums only
SHA-140 hex charactersLegacy systems, Git object IDs
SHA-25664 hex charactersChecksums, file verification, signatures
SHA-512128 hex charactersWhere a longer hash is required

For anything new, use SHA-256. MD5 and SHA-1 have known weaknesses: researchers can create two different inputs with the same hash, so they're no longer trusted for security. They're still fine for spotting accidental changes, such as a corrupted download.

Hashes are one-way

A hash can't be reversed to reveal the original text. But short or common text can be guessed: attackers keep huge tables of hashes for common passwords. That's why passwords should never be stored as plain MD5 or SHA hashes; password storage uses special slow algorithms such as bcrypt or Argon2, with a unique salt for each password.

Checking a value

To check whether two pieces of text are identical, hash both and compare. Even a single extra space, a different line ending or a hidden character changes the hash completely, which makes hashing a reliable way to spot tiny differences.

Hashing files

This tool hashes text you type. To hash a file, such as an APK, ISO image or ZIP archive, and compare it with a hash published by the developer, use the APK & file SHA-256 checker.

Hashing runs in your browser; nothing you type is uploaded.

Frequently asked questions

What is a hash?

A hash is a fixed-length fingerprint of some data. The same input always gives the same hash, but even a one-letter change produces a completely different result, and you can't work backwards from a hash to the original text.

Is MD5 still safe to use?

Not for security. MD5 and SHA-1 have known weaknesses that let attackers create different inputs with the same hash. They're fine for detecting accidental changes, but use SHA-256 or stronger for anything security-related.

Can I hash a file here?

This tool hashes text. To hash a file, including APKs, ISOs or archives, use the APK and file SHA-256 checker, which reads the file in your browser and compares it with a published hash.

Last updated by the APKPeer Editorial Team. Read our privacy policy for how the site handles data.