WebToolsPlanet
Generator Tools

Random Hex Generator

Generate random hexadecimal strings for fixtures, mock tokens, examples, and converter tests.

Last updated: May 31, 2026

For production secrets, cryptographic keys, or access tokens, use a dedicated secret generation and storage workflow.

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is Random Hex Generator?

This tool creates random bytes and formats them as hexadecimal. You can control byte count, output count, casing, prefixes, and separators.

How to Use Random Hex Generator

1

Enter the byte length and count.

2

Choose a separator.

3

Toggle uppercase or 0x prefix if needed.

4

Click Generate.

5

Copy individual strings or the full list.

Common Use Cases

  • Creating random hex fixtures.
  • Testing hex converters.
  • Generating mock color-like or byte-like values.
  • Writing protocol documentation examples.

Example Input and Output

Generate colon-separated hex bytes.

Settings
Bytes: 4, Count: 3, Separator: Colon
Hex
A3:0F:77:21
D9:4C:80:12
5B:AA:09:FE

Data Privacy

Hex strings are generated locally in your browser.

Frequently Asked Questions

Can I generate lowercase hex?
Yes. Turn off Uppercase to produce lowercase hex.
Can I add 0x?
Yes. Enable Add 0x prefix.
Can I copy the full batch?
Yes. The copy button above the results copies every generated line.