PBKDF2 Key Derivation
Stretch a passphrase into a cryptographic key with PBKDF2 (RFC 8018) using the Web Crypto API. Pick the PRF hash, iteration count, salt and key length; get the key as hex or base64. Paste an expected value to check a stored password hash without sending anything to a server.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
The passphrase is the input
Whatever you type in the box is treated as the passphrase; the tool imports it as raw key material and stretches it with PBKDF2. The result is a table listing the algorithm, iteration count, salt size, salt in hex, passphrase length, derived key in hex and base64, and how long the derivation took.
Reproducing a stored password hash
A practical use is confirming a hash from a database dump: set the PRF hash, iteration count, salt and key length to the values stored with the user record, type the candidate password, then paste the stored hash into the verify box to get Match or Mismatch. The byte comparison runs in constant time.
Choosing the parameters
The hash selector picks SHA-1, SHA-256 or SHA-512, the iteration box defaults to 600000, key length defaults to 32 bytes, and the salt is read as UTF-8 text unless you switch it to hex or base64. The derived key can be shown as hex or base64.
Caps and weak-setting warnings
Iterations above five million and keys longer than 1024 bytes are refused so the page stays responsive. Below the OWASP count for the chosen hash, with salts under eight bytes, or with a very short passphrase, the tool still runs but prints a warning. Stretching cannot add entropy that was never there.
Derivation never goes online
The work is done by the browser Web Crypto API inside the tab. No passphrase, salt or hash is uploaded, and the page makes no network requests.
Questions
What is PBKDF2 used for?
PBKDF2 turns a low-entropy passphrase into a fixed-length key by hashing it together with a salt many thousands of times. It is used for password storage (Django, WPA2, 1Password exports), for deriving encryption keys from passphrases, and for key stretching before use with AES or HMAC.
How many iterations should I use?
OWASP currently recommends 600,000 iterations for PBKDF2-HMAC-SHA256 and 210,000 for SHA-512. Higher counts slow attackers proportionally, so pick the largest number your sign-in latency budget allows.
Why is a salt required?
A salt prevents identical passphrases from producing identical keys and defeats precomputed rainbow tables. Never reuse a salt across users, and store it next to the hash so verification can repeat the derivation.
Is my passphrase sent anywhere?
No. Derivation runs locally with the browser Web Crypto API, and the page makes no network requests at all.
How does verification work?
Paste the expected key (hex or base64) into the verify field. The tool re-derives the key and compares the bytes in constant time, reporting Match or Mismatch — the same check a server performs when you sign in.
How is the expected key interpreted?
An even number of hex digits (spaces, colons and dashes are ignored) is read as hex; anything else is decoded as base64. Match the output encoding to whatever format your stored hash uses.
Related tools
See categoryText Hash Generator
Hash text with MD5, SHA-1, SHA-256, SHA-384 or SHA-512 and output hex, Base64 or base64url.
HMAC Generator
Compute an HMAC of text with a secret key using SHA-1, SHA-256, SHA-384 or SHA-512.
Password Strength Analyzer
Estimate password entropy and score strength with feedback.
File Hash / Checksum
Compute SHA-256/384/512 and SHA-1 checksums for one or more files.