Skip to content
hateitall

Random Hex Generator

Get random hex values of exactly the length you need for IDs, salts, tokens or test data.

Processed locallyIn: Length, CountOut: Hex, TXT

Loading tool…

How to use random hex generator

  1. Set the length in hex digits or in bytes.

  2. Choose how many values you need.

  3. Turn on uppercase or a 0x prefix if your code wants it.

  4. Copy the list or download it.

What this tool does

  • Every digit carries exactly 4 bits from the browser's secure random source.
  • Length in digits (odd lengths allowed) or in bytes, up to 4,096 digits.
  • Up to 5,000 values per batch.

How the result is verified

Every value is checked against the exact pattern of your settings: prefix, letter case and number of digits.

Frequently asked questions

How many hex digits do I need for a unique ID?

32 digits give 128 bits, the same as a random UUID, which is enough to never collide in practice.

Is a random hex string the same as a hash?

No. A hash is computed from input and is the same every time; these values are random and different every time.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Random keys for JWT, HMAC, AES and sessions as hex, Base64 or Base64URL

Size in bytes→ HexLight on device

Bulk random strings from preset or custom character sets, no repeats

Length · Character set→ TextLight on device

Text to hex bytes and hex back to text, in five output styles

Text · Hex→ HexLight on device

Bulk UUID v4 and v7 with formats, plus a UUID inspector

Options · UUID→ UUIDsLight on device