Random Binary Generator

Generate lists of random eight bit binary numbers, each one a full byte written as zeros and ones.

Binary numbers16 generated
  1. 11011011
  2. 10010001
  3. 10101011
  4. 10000001
  5. 01101100
  6. 10001101
  7. 11000010
  8. 10100100
  9. 11100001
  10. 01111100
  11. 10111000
  12. 10100001
  13. 00011110
  14. 11110100
  15. 00001101
  16. 01000001
Runs locally in your browser

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

  1. Choose how many bytes you want, up to 500 per press.
  2. Leave repeats allowed for a realistic byte stream, or tick the box for a set of distinct values.
  3. 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.