Skip to content
TabKiwiTabKiwi

Random Hex Generator

Secure random hexadecimal strings of any length, in lowercase or uppercase, with optional 0x.

SecurityRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Generates hexadecimal strings from cryptographically secure random bytes, handy for nonces, salts, test IDs and keys. Each hex digit carries 4 bits, so 32 digits equal 128 bits and 64 digits equal 256 bits. Everything is created locally in your browser.

How to use Random Hex Generator

  1. Enter the number of hex digits you need.
  2. Choose how many strings to make.
  3. Toggle uppercase or the 0x prefix if your code expects it.
  4. Copy or download the results.

Frequently asked questions

How many hex digits do I need for a 256-bit key?

64 hex digits, since each digit encodes 4 bits.

Is uppercase or lowercase better?

They represent the same value. Use whichever your system expects; lowercase is more common.

More Security tools

View all 20 →