#
Runs in your browserNothing is uploadedPrivacy & Security

Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text at once, as you type.

Loading tool…
Short answer

Hash Generator calculates the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text at once, as you type. SHA hashes come from your browser's Web Crypto engine and MD5 from a built-in implementation tested against the standard vectors.

What is a hash?

Cryptographic hash

A fixed-length fingerprint of data. The same input always gives the same hash, any change gives a completely different one, and you cannot work back from the hash to the input. SHA-256 gives 64 hex characters whatever the input size.

MD5 and SHA-1

Older hashes for which collisions can now be manufactured. They are still fine for detecting accidental changes, but must not be used to protect against tampering or to store passwords.

Why use Hash Generator?

  • All five at once. Compare a value against whichever algorithm your system uses without switching tools.
  • Exact bytes. Text is hashed as UTF-8 exactly as typed, including spaces and line breaks, which is what most programs do.
  • Private. Hashing happens in your browser, so secret values are never sent anywhere.

How to use Hash Generator, step by step

Hash Generator in PrintxPDF with a file loaded, options on the right and the run button below
Hash Generator with a file loaded: the steps below follow this screen.
  1. Type or paste text into Hash Generator. Every hash updates as you type.
  2. Choose upper or lower case. Hex hashes are the same value in either case.
  3. Copy the hash you need. Each algorithm has its own Copy button.

Frequently asked questions

Why does my hash differ from another tool?

Usually a trailing new line or space. Many command-line tools hash the line break that echo adds. Check the input matches byte for byte.

Should I store passwords as SHA-256?

No. Passwords need a slow, salted hash such as Argon2, bcrypt or PBKDF2. Fast hashes like SHA-256 let attackers guess billions of times a second.

Can I hash a file?

Yes, with File Checksum, which also compares against an expected value.

Looking for the long version? The guides cover each of these jobs in depth.