Random Bytes Generator for Hex, Base64, and Decimal
The Random Bytes Generator fills a buffer with cryptographically random bytes using WebCrypto, then displays the result as hexadecimal, Base64, or space-separated decimal values. Use the generated bytes for keys, nonces, tokens, tests, fixtures, or seed data. Set the available options, generate a batch, and copy the representation that fits your workflow.
The Random Bytes Generator creates cryptographically random bytes with WebCrypto and displays them as hex, Base64, or space-separated decimal. Use this browser-based tool to generate values for keys, nonces, tokens, tests, fixtures, and seed data, then copy the representation that suits your task.
The tool fills a buffer with random bytes and renders the same byte data in your chosen format. Hexadecimal and Base64 provide text representations, while the decimal option shows the values as numbers separated by spaces. Set the available options, generate a batch, and copy the output you need.
These formats present byte data in different ways, so the right choice depends on where you plan to use it. Hex can be useful when a workflow expects a hexadecimal string, Base64 offers another text representation, and space-separated decimal makes individual values easy to distinguish. Converting the representation can make random byte data easier to use in code, tests, or documentation.
The Random Bytes Generator runs entirely in your browser. Your data is processed on your device and is not uploaded, stored, or sent to a server. There is no signup, and after the page has loaded, the tool works offline.
This tool is useful for developers and DevOps engineers preparing random values for development, testing, or other workflows involving bytes. Whether you need a single representation for a test fixture or a batch for seed data, you can generate the values and copy them without manually making them up.
Step 1: Set the available options before generating. The tool uses WebCrypto to fill a buffer with random bytes.
Step 2: Choose an output representation: hex, Base64, or space-separated decimal.
Step 3: Generate the bytes. The result is displayed in the selected representation.
Step 4: Copy the values you need for your key, nonce, token, test, fixture, or seed data.
Use case: Create random byte values for tests and fixtures instead of inventing sample values by hand.
Use case: Generate a whole batch at once when preparing seed data or test inputs.
Use case: Use cryptographically random bytes when predictable, manually typed values are not suitable.
Use case: Generate byte values for keys, nonces, or tokens, then copy them in the representation your workflow needs.
Use case: Prepare test data in hexadecimal when a system or example expects a hex string.
Use case: Use Base64 output when you need a text representation of random bytes.
Use case: Choose space-separated decimal output when you need to inspect or use the individual byte values.