Free online dedicated toolsWeb Crypto · Data is not uploaded

random binary generator

Random binary generators are intended for development and learning scenarios that require precise bit lengths. Enter 1 to 32768 bits, and the tool sequentially extracts the required number of bits from the Web Crypto random bytes without padding even if the length is not a multiple of 8; the results can be displayed continuously or grouped every 8 bits.

free onlineRun locallyWeb CryptoDevelop test data

Get started with a random binary generator

Enter an exact number of digits and a generated number, and output a random sequence of 0/1s, either contiguous or grouped by bytes.

readyAfter completing the settings, click the main operation button

Precise number of digits is supported; the last group that is less than a whole byte is still displayed as the actual number of requested digits.

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

Enter the number of digits

Fill in the exact number of digits required for each result by protocol field, exercise question, or test case.

02

Select group

The continuous output is easy for the program to read, and the 8-bit grouping is easy for manual checking of byte boundaries.

03

Generate results

Generate random bit strings in batches, copy or download them for local development and testing.

FAQ

Random Binary Generator FAQ

Is it okay if the number of digits is not a multiple of 8?

Can. The tool only displays the exact number of bits requested, the last set can be less than 8 bits.

Does grouping every 8 bits change the data?

No, the packet only adds spaces to facilitate reading. After removing the spaces, it is the same as the continuous output bit sequence.

Why not use Math.random?

Web Crypto specializes in providing cryptographically strong random values, better suited for generating unpredictable test bit strings.

Can pseudo-random binary sequences PRBS be generated?

cannot. This page generates independent random bits and does not implement hardware test PRBS with fixed polynomials, periods and seeds.