Skip to the tool
mtool
  • free
  • no sign-up
  • on device
  • random
  • generator

Random Hex Generator

Generate random hexadecimal strings by character or byte length in your browser — free, with no sign-up, and your results never leave your device unless you choose to share them. Choose character or byte length and letter case, then copy or download your batch; odd character counts work too.

Your random result will appear here.

Values and hash sources stay in this tab. Only preset settings are saved on this device; custom alphabets and free text are never saved.

Effective alphabet size: 16

1–65,536 per value. Formatting adds characters to the result.

1–1,000 values per batch.

More settings

Optional: up to 32 printable ASCII characters, including spaces.

Optional: up to 32 printable ASCII characters, including spaces.

Formatted values plus line breaks: at most 1,048,576 bytes. JSON export: at most 3,145,728 bytes. Formatting adds no randomness.

Download options

Questions

Can I generate an odd number of hex characters?

Yes. Character mode samples each character independently from 0–9 and a–f. An odd number of characters is a hex string, but it cannot represent a whole number of bytes.

What happens when I switch from characters to bytes?

Even lengths convert exactly: 64 characters becomes 32 bytes. For an odd length, choose the explicit rounding action; 5 characters becomes 3 bytes and 6 hex characters. Switching modes generates fresh data.

Do uppercase and grouping change the random data?

No. Case, prefix, suffix and grouping only format the same value. Grouped or decorated output is not a plain hex encoding; JSON includes separate raw and formatted values.

Can I download the underlying bytes?

In byte mode with one value, Download .bin exports the actual random bytes. TXT and JSON export complete encoded values for single results or batches.

Is this tool free?

Yes. This tool is free, with no sign-up and no daily limits.

Do I need an account?

No. You can use this tool without an account.

Is my input sent anywhere?

No. This tool runs in your browser. Your input and results never leave your device unless you choose to share them.

Related tools

Random String Generator

Generate random strings with an exact character length and your chosen alphabet.

  • random
  • generator
Open

Random Token Generator

Generate random bytes as Base64url, Base64, Hex, Base32, Base58 or Binary tokens.

  • random
  • generator
Open

Random Hash Generator

Generate real hash digests from fresh random bytes using SHA-256 and 14 other algorithms.

  • random
  • generator
Open