Random Binary Generator

Random strings of 0s and 1s, any length.

Choose how many bits per value and how many values you need. Each bit is an independent coin flip from your device's secure random source.

Binary strings are the raw material of computing, and random ones are useful for teaching how bits and bytes work, seeding test data, generating random flags or bitmasks, and experimenting with encodings. Set the bit length to 8 for a byte, 16 or 32 for wider values, or anything up to 64.

Every bit is an independent fair coin flip, so the strings are unbiased and suitable for demonstrations of probability and information.

Frequently asked questions

What can I use this for?

Teaching binary, seeding test data, generating random flags or masks, or just exploring how bits work.

Can I convert these to decimal?

Yes — each string is a standard base-2 number, so you can convert it with any calculator or a bit of code.