Secure random
Generate random bytes, keys and passwords from your device’s secure random source.
About this tool
Passwords, encryption keys, salts and nonces need randomness an attacker cannot predict. This page draws it from the cryptographically secure random generator built into your browser.
Generate a password of up to 4,096 characters from lowercase, uppercase, digits and symbols, or random bytes in hex, Base64, Base64URL, Base32 or Base58 for keys and tokens.
Questions
- How long should a random password be?
- Each character from letters and digits adds about 6 bits. 16 characters give about 95 bits and 20 give about 119, both far beyond what can be guessed.
- How many bytes does an encryption key need?
- 32 bytes for AES-256 or ChaCha20, and 16 bytes for AES-128.
- Is my input sent to a server?
- No. The page loads a compiled Dart engine into a Web Worker and does all the work in your browser tab. Nothing you type or drop in is uploaded, and the tools keep working offline once the page has loaded.