About the Random Binary Generator
Every line is exactly eight bits wide, padded on the left, so the values line up in a column and read as bytes rather than as arbitrary length strings. Leading zeros are preserved, which matters when the numbers are used to demonstrate place value or to build bit masks by hand.
Because each bit is drawn independently, roughly half of the digits are ones over a long run, and any particular byte from 00000000 to 11111111 is equally likely. That flat distribution is what makes the output useful for teaching probability, for stress testing a parser that consumes binary literals, and for producing sample data for bitwise exercises.
The no repeats switch is off by default here on purpose: with only 256 possible bytes, a list of a few hundred lines should be allowed to show the same value twice, exactly as a real byte stream would. Turn it on when you want a set of distinct masks instead. To read the numbers back as characters or decimals, paste them into the Binary to Text converter or the Number Base Converter, and use the Bitwise Calculator to AND, OR or XOR two of the results together.
How to use
- Choose how many bytes you want, up to 500 per press.
- Leave repeats allowed for a realistic byte stream, or tick the box for a set of distinct values.
- Press Generate, then copy the column or download it as a text file.
Common questions
- How wide is each number?
- Eight bits, so every line is one byte with leading zeros kept in place.
- Why are duplicates allowed by default?
- There are only 256 distinct bytes, and a genuine random stream repeats values. Tick no repeats when you need unique masks.
- Can I convert the output to decimal?
- Yes, paste a line into the Number Base Converter to see the decimal, octal and hexadecimal forms.
- Is the randomness cryptographic?
- Each bit comes from the browser secure random source, so the output is unpredictable, though it is not a substitute for a key generator.