Password & Hash Generator

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

This page combines two everyday security utilities: a random password generator and a hash calculator. Both work offline inside your browser, so nothing you type is sent over the internet.

The password generator uses the browser's cryptographically secure random number generator (crypto.getRandomValues), not the weaker Math.random() that many online generators rely on. You can choose a length from 8 to 64 characters, select which character groups to include, and exclude look-alike characters such as O, 0, l and 1. A strength meter estimates the entropy in bits so you can see how hard the password would be to guess. As a rule of thumb, 12 or more random characters from a mix of groups is a good minimum for ordinary accounts, and 16 or more is better for email, banking and password-manager master passwords.

The hash generator calculates MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once for any text or file. A hash is a fixed-length fingerprint of the input: the same input always gives the same hash, and even a one-character change gives a completely different result. Hashes are used to verify downloads, detect changed files and compare data without storing it. You can also compute an HMAC by entering a secret key, which proves that a message came from someone who knows the key.

Note that MD5 and SHA-1 are considered broken for security purposes because collisions can be created on purpose. They are still fine for non-security tasks such as checksums, but use SHA-256 or stronger for anything that matters. Never use a plain fast hash to store user passwords; use a dedicated password hashing function such as bcrypt, scrypt or Argon2 on your server.

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

Web hosting by Somee.com