Free online dedicated toolsWeb Crypto · Data is not uploaded

Random hex generator

The random hex generator creates a specified number of raw random bytes in the browser, then encodes each byte into two Hex characters. You can control the number of bytes, batch size, case, 0x prefix and byte delimiter to get a format suitable for configuration files, test fixtures, nonces or salts directly.

free onlineRun locallyWeb CryptoDevelop test data

Get started with a random hex generator

Batch-generate Hex by byte length, with optional case, prefix, and common byte delimiters.

readyAfter completing the settings, click the main operation button

Each byte appears as two hexadecimal characters; random bytes are generated only in the current browser.

recent records

Records are only saved in the current browser and can be cleared at any time.

Instructions for use

Three steps to get started

01

Set the number of bytes

Enter the raw number of bytes contained in each value; one byte corresponds to two hexadecimal characters.

02

Select format

Select case, 0x prefix, and byte delimiter by target code or configuration.

03

Generate export

Copy all results after batch generation, or download TXT to save as test data.

FAQ

Random Hex Generator FAQ

What is the relationship between the number of bytes and the number of hexadecimal characters?

Each byte is represented by two hex characters, so 16 bytes yields 32 hex characters, excluding prefixes and delimiters.

Where is the random data generated?

Using browser Web Crypto's getRandomValues ​​is generated natively and the results are not submitted to the website server.

0What does the x prefix do?

0x is commonly used in source code and configuration to represent hexadecimal numbers; whether it is required depends on the target language or system format.

Can it be used directly as an official key?

Tools provide secure random bytes, but formal keys also involve generation environment, access control, storage, rotation, and backup policies that should adhere to target system specifications.