Free Password & Hash Generator – MD5, SHA-256, SHA-512

Create strong random passwords and calculate MD5, SHA-1, SHA-256, SHA-512 and HMAC hashes.

Generated with your browser's secure random generator. Nothing is sent or stored.

Files are read locally and never uploaded.
Results Text

About this tool

Two separate utilities live on this page: a password generator and a hash calculator. Both run offline in your browser, so none of it is sent anywhere over the internet.

The password generator pulls from the browser's cryptographically secure random number source, crypto.getRandomValues, rather than the weaker Math.random() that a surprising number of online generators still use. Pick a length from 8 to 64 characters, choose which character groups to include, and optionally exclude look-alike characters such as O, 0, l and 1. A strength meter shows the entropy in bits. As a rough guide, 12 random characters from a mixed set is a reasonable floor for an ordinary account, and 16 or more makes more sense for email, banking, or a password manager's own master password.

Switch to the hash side and you get MD5, SHA-1, SHA-256, SHA-384 and SHA-512 calculated together for any text or file. A hash is a fixed-length fingerprint of whatever you feed it: the same input always produces the same output, and changing a single character produces a completely different one. That makes hashes useful for verifying downloads, spotting a changed file, or comparing data without ever storing the data itself. Enter a secret key and you also get an HMAC, which proves a message came from someone who actually holds that key.

MD5 and SHA-1 are included because plenty of legacy systems still expect them, but both are considered broken for anything security-sensitive, since deliberate collisions are possible. Stick to SHA-256 or stronger where it matters. And whatever you do, don't hash passwords this way on a server: a plain fast hash is the wrong tool for that job, use bcrypt, scrypt or Argon2 instead.

How to use

  1. Password: move the length slider, tick the character groups you want, and click Generate. Use Copy to put the password on your clipboard.
  2. Hash a text: type or paste text in the hash box. All hashes update instantly.
  3. HMAC: enter a secret key in the HMAC field to calculate keyed hashes for the same text.
  4. Hash a file: choose a file to calculate its checksums, then compare them with the value published by the software author.
  5. Click any hash value to copy it.

Frequently asked questions

Yes. It uses the Web Crypto API (crypto.getRandomValues), which is designed for cryptographic use, and it avoids modulo bias when picking characters.

No. Passwords are created in your browser and are never sent to or saved on a server.

Use at least 12 characters for normal accounts and 16 or more for important ones. Length matters more than complexity, and every account should have its own unique password.

Not directly. Hash functions are one-way. Short or common inputs can still be guessed by trying many candidates, which is why passwords must be hashed with slow, salted algorithms like bcrypt or Argon2.

MD5 is still widely used for file checksums and legacy systems, so the tool supports it. Do not use MD5 or SHA-1 where security matters.

HMAC is a way of combining a hash function with a secret key. It is used to sign API requests and webhooks so the receiver can confirm the message was not altered.

Related articles

Urdu Phonetic Keyboard Layout Explained
Guides Nov 10, 2026

Urdu Phonetic Keyboard Layout Explained

A complete chart of the Urdu phonetic keyboard layout: every letter, every Shift key, the vowel marks and the punctuation, with practice words you can try yourself.