Random Bytes Generator
Generate cryptographically secure random bytes as hex, base64, or a byte array.
How to Use
- 1
Set length and format
Bytes count, output encoding, and how many values.
- 2
Click Generate
Values come from the OS-backed secure RNG.
- 3
Copy your secret
Paste into your .env or key management system.
Frequently Asked Questions
- They come from crypto.getRandomValues — the browser's cryptographically secure RNG seeded by the operating system. Suitable for keys, tokens, and salts, unlike Math.random.
Related Tools
Password Strength CheckerCheck password strength and crack time estimateAES EncryptionEncrypt and decrypt text with AES-256 in your browserTOTP / 2FA GeneratorGenerate TOTP codes from a secret key (Google Authenticator compatible)SHA-256 GeneratorGenerate SHA-256 hashes from any textMD5 GeneratorGenerate MD5 hashes for checksums and fingerprintingSalt GeneratorGenerate cryptographic salt values for password hashingJWT BuilderBuild and sign JWT tokens with a custom payload and secretXOR CipherEncrypt or decrypt text with a XOR key