Skip to content
PocketDesk
Your files are processed on your device, never uploaded

Hash generator

  • On device
Input
Ln 1, Col 11 line0 BUTF-8

Paste, drop or open a file in Input to see the result here.

Waiting for input
  • ⌘Enter Run now
  • ⌘⇧C Copy result
  • ⌘F Find in result
  • Esc Exit full screen
  • Use Ctrl instead of ⌘ on Windows and Linux

How to generate a hash

  1. Paste or type your text into the Text to hash box.
  2. Read the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 results. They update as you type.
  3. To check a known value, paste it into Compare with expected hash. The tiles show Match and the algorithm name, or No match.
  4. Select Copy to copy all hashes.

This tool hashes text only. For files, use a command such as shasum -a 256 file on your computer.

What a hash is

A hash function turns any input into a short fixed-length fingerprint. The same input always gives the same result, and a tiny change gives a completely different one. You cannot rebuild the input from the hash.

Algorithm Length Use
MD5 128 bits, 32 hex Legacy checksums only
SHA-1 160 bits, 40 hex Legacy, such as old Git object names
SHA-256 256 bits, 64 hex Default for integrity checks
SHA-384 384 bits, 96 hex Longer variant of SHA-2
SHA-512 512 bits, 128 hex Longer variant, fast on 64-bit CPUs

Tips

  • Your text is encoded as UTF-8 before hashing. A trailing newline changes the hash, so check for one if values do not match.
  • The comparison ignores case and spaces, so you can paste a hash as published.
  • Never store passwords as a plain hash. Use bcrypt, scrypt or Argon2 on your server.
  • Hash values are often shown in hex. To convert text to another encoding, try Base64 encode and decode.
  • Need a random identifier instead? Use the UUID generator.

Privacy

SHA-1, SHA-256, SHA-384 and SHA-512 use your browser’s built-in crypto engine. MD5 runs through a small library that is loaded only when needed. Your text is never uploaded, stored or logged.

Questions

Which hash should I use?

Use SHA-256 or SHA-512 for integrity checks. MD5 and SHA-1 are broken for security and fine only for checksums against accidental damage.

Can a hash be reversed to get the text back?

No. A hash is one-way. Attackers guess inputs and compare, which is why passwords need a slow, salted algorithm, not a plain hash.

How do I check a download against a published hash?

Paste the expected hash into the compare field. The tool says which algorithm matches. This page hashes text, not files.

Why does my hash differ from another tool?

Usually extra whitespace or a different line ending. This tool hashes your text exactly as typed, encoded as UTF-8.

Is my text uploaded?

No. Hashes are calculated in your browser and nothing leaves your device.

More developer tools