Random Base64 / Key Generator
Secure random bytes formatted simultaneously as Hex, Base64, and Base64URL.
Generating…256 bitsVery strongOffline crack estimate (10B/s): billions+ years
Computed locally via Web Crypto. Secrets never leave this browser tab.
How to use Random Base64 / Key Generator
Choose the random byte width (128-bit through 512-bit, defaulting to 256-bit).
Copy Base64, Base64URL, or Hex representations derived from the exact same cryptographic bytes.
Frequently asked questions
When should I use Base64URL instead of standard Base64?
Use Base64URL inside URLs, JWT secrets, cookies, and filenames because + and / are replaced with - and _.