Generator Settings
Byte count:
32
bytes
Common sizes
Custom…
12 — AES-GCM nonce / IV
16 — AES-128 key, salt, UUID
24 — ChaCha20-Poly1305 nonce (XChaCha)
32 — AES-256 key, HMAC-SHA256 secret
48 — HMAC-SHA384
64 — HMAC-SHA512, signing secret
128 — long-term master key material
How many sets?
Regenerate
Output format
Hexadecimal
Hex, space separated
Base64
Base64URL (URL & filename safe)
Binary (8 bits per byte)
Decimal, comma separated
Octal
JavaScript Uint8Array
C / C++ array
Python bytes literal
Go []byte
Java byte[]
Rust [u8; N]
C# byte[]
SQL binary literal
Options
Uppercase hex
Applies to hex and code output.
Wrap long lines
Breaks output at 16 bytes per line for readability.
Include variable declaration
Emits a complete statement rather than a bare literal.
Variable name
Random Bytes
Output
All encodings
Generate in code
bytes.txt
Copy
Download text
Download .bin
Bytes come from the operating system CSPRNG via
crypto.getRandomValues()
. Generation is local — no request is made, and nothing is stored.