Runs in this tab · nothing uploaded

EN

English

हिन्दीComing soon

EspañolComing soon

Pinned
HelpyTools

More

Random hex string generator

Make random hexadecimal strings (0 to 9 and a to f) of any length from 4 to 128, for tokens, secrets and test IDs.

Runs in your browserNothing uploadedWorks offline

Set up for this job. It runs on Password generator, where every option is there to change.

Loading Random hex string generatorRuns on this device. Nothing is uploaded.

Questions

How many random bits are in a hex string?

Four per character. 32 hex characters carry 128 bits, the same as 16 random bytes; 64 characters carry 256 bits.

Is it random enough for secrets?

Each character comes from crypto.getRandomValues, the browser's cryptographically secure random source, with rejection sampling so all 16 characters are equally likely.

Can I get uppercase hex?

Not here; the output uses lowercase a to f. Hex is not case sensitive, so most systems accept either.

All developer tools

↑ ↓ move↵ openesc close

The tray

Install HelpyTools

Get HelpyTools on your home screen or Dock. It opens in its own window, and tools you have opened once keep working offline.