Skip to main content

PBKDF2 Generator

Derive a key from a password with PBKDF2 (HMAC SHA-1, SHA-256, SHA-384 or SHA-512), with OWASP iteration guidance and hex or Base64 output. Private.

More options

Password and salt

Derived key

The key appears here.

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to Base64URL & Base32 Converter.

Free Online PBKDF2 Key Derivation Calculator

Turn a password and a salt into a key with PBKDF2. Choose the hash, the number of iterations and the length; the page tells you when the work is below what OWASP recommends. It gives developers a quick browser-based way to solve a focused pbkdf2 generator task before moving the result into a project.

How to derive a key

Type the password, choose the hash and enter a salt (or press Random salt), then press Derive key. Copy the key as hex or Base64.

Matching another system

Use the same hash, iterations, key length and exact salt bytes. If the other side gives the salt as hex or Base64, choose that format here.

Common mistakes

  • Using the salt as text on one side and as hex on the other: the bytes differ and the keys never match.
  • Keeping the old default of 1,000 or 10,000 iterations, which is far too low today.

Frequently asked questions

How many iterations should I use?
OWASP recommends at least 600,000 for PBKDF2-HMAC-SHA256, 210,000 for SHA-512 and 1,300,000 for SHA-1. The page warns you when your number is lower.
What is the salt for?
A random salt makes the same password give a different key each time, so a stolen list cannot be attacked with one precomputed table. Use at least 16 random bytes and store it next to the result.
Is PBKDF2 the best choice?
It is widely supported and accepted for compliance (FIPS), but it is not memory-hard. For new password storage, Argon2id or scrypt resist attackers with GPUs better.
Is my password uploaded?
No. The key is derived by your browser. Do not paste real production passwords into any website.
How do I use this pbkdf2 generator tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.

More Security & Auth

View all Security & Auth tools →