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.
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
Enter the number of digits
Fill in the exact number of digits required for each result by protocol field, exercise question, or test case.
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.
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.