Random bytes

Random Key Generator

Create random key material in common text encodings. Always follow the consuming application’s required size and format.

Generate random key material

Choose the byte length and representation required by your application.

Generated locallyThe raw bytes and encoded output remain in this browser tab.

Encoding does not change the randomness

Hexadecimal, Base64, and Base64url are different textual representations of the same random bytes. Select the encoding the destination explicitly accepts.

Handle generated keys as secrets

Copy the value directly into its secure destination. Do not place it in source control, URLs, analytics, screenshots, chat, or ordinary notes.