Password Hash Generator
Hash a password for storing it in a database: Argon2id, bcrypt or PBKDF2 with a random salt, compatible with PHP, Laravel and Django.
bcrypt only uses the first 72 bytes: everything after that is ignored. Use Argon2id for longer passwords.
Runs only in your browser: nothing you enter here is stored or sent to us.
How to use the Password Hash Generator
- 1 Type the password.
- 2 Choose an algorithm (Argon2id unless your system needs another) and its settings.
- 3 Press Hash password and copy the result into your database or config.
About the Password Hash Generator
Websites should never store passwords themselves, but a slow, salted hash of them. When someone logs in, the system hashes what they typed with the same salt and settings and compares. If the database ever leaks, a slow hash makes guessing the passwords back far too expensive.
The output contains everything needed to check a password later: the algorithm, its settings, the random salt and the hash, for example $argon2id$v=19$m=19456,t=2,p=1$… or $2y$12$…. These are the formats PHP's password_hash() makes, so password_verify(), Laravel's Hash::check() and most other frameworks accept them as they are.
Typical uses: creating the first admin user directly in a database, filling a .htpasswd-style config, or testing your own login code. Everything runs in your browser; the password and the hash are never sent or stored.
Frequently asked questions
Argon2id or bcrypt?
Both are good. Argon2id is newer and resists graphics-card attacks better because it needs a lot of memory; bcrypt is supported everywhere. Avoid plain or salted SHA hashes for new systems.
Why is the hash different every time?
Because every hash gets a new random salt. That's intended: two users with the same password get different hashes. Verifying still works because the salt is stored inside the hash.
Will my framework accept this hash?
Argon2id and bcrypt hashes work with PHP's password_verify() and therefore Laravel, Symfony and WordPress (bcrypt); most other languages have libraries for the same formats. PBKDF2 uses Django's format.
Is my password sent anywhere?
No. Hashing runs in your browser; this tool is marked sensitive, so Toolgrid only records that it was used.