Get started with a random hex generator
Batch-generate Hex by byte length, with optional case, prefix, and common byte delimiters.
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
Set the number of bytes
Enter the raw number of bytes contained in each value; one byte corresponds to two hexadecimal characters.
Select format
Select case, 0x prefix, and byte delimiter by target code or configuration.
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.