About Argon2 Hash Generator and Verifier
Argon2 is the password hashing function standardised in RFC 9106, built to be expensive in memory as well as time. Type a password, choose the variant and its costs, and get the encoded $argon2id$ string your login code stores, along with the raw hash in hex. Switch to Verify to paste an encoded hash and see whether a password produces it.
The hashing runs in a background thread of this page. The password is never stored and never leaves your device.
How it works
- A new 16-byte salt comes from the browser’s secure random source for every hash, unless you supply your own as text or hex.
- The password, as UTF-8, is hashed with the chosen variant, memory in KiB, number of passes and lanes, to the hash length you set, using Argon2 version 1.3.
- The result is written in the encoded form most libraries read: $argon2id$v=19$m=…,t=…,p=…$ then the salt and the hash in Base64 without padding.
- Verify reads the variant, costs, salt and hash length from the encoded string, refusing one that is malformed, recomputes the hash and compares every byte.
Questions
Which settings should I choose?
Argon2id with as much memory as your server can spare on every login. RFC 9106 suggests 64 MiB with 3 passes and 4 lanes, which is the default here; with less memory, use more passes. Whatever you choose must match what your server will use to check.
What are the largest settings this page accepts?
Up to 262,144 KiB (256 MiB) of memory, 20 iterations, 16 lanes, a 128-byte hash and a 512-byte salt, both for hashing and for checking. Argon2 holds all of its memory at once, and more than that is not reliably available to a browser tab on a phone. Large settings can take several seconds; changing any input stops a run.
Why does the same password give a different hash each time?
Each hash gets its own random salt, stored inside the encoded string. That stops identical passwords from having identical hashes. Every one of them verifies against the password.
Can it check hashes made by other libraries?
Yes, if they are in the standard encoded form with v=19, which is what current libraries write. Older version 1.0 hashes, which have no v= field, and strings with extra fields such as a key id are refused with a message saying why.
Is my password sent anywhere?
No. The hashing runs entirely in this page, in a background thread, and nothing you type is saved or leaves your device.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.