Random Binary Generator
Random 0s and 1s in any length
Set a Length in bits from 1 to 2,048 and a Count from 1 to 100, and every bit is decided individually — no rounding to whole bytes, so 7 bits gives you exactly seven characters and 100 bits gives you a line you can drop straight into a bit-field fixture. Group into bytes is on by default and inserts a space every eight bits, which is the form you want when you are reading across a byte boundary by eye or hand-writing a packet in a lab notebook. Turn it off for a continuous stream that you can pipe into a bit parser without stripping separators first. Each bit comes from its own crypto draw, which is why very long lengths take a moment: the page is not filling a byte array and splitting it, it is asking for a fresh 32-bit value per bit.
Generate random binary sequences of any length, grouped in bytes for readability. Useful for teaching binary, testing parsers and generating random bit patterns.
Private Random Binary Generator In Your Browser
Random Binary Generator is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Random Binary Generator
Set Length (bits) between 1 and 2,048.
Pick a run size from 1 to 100.
Leave Group into bytes (8) ticked for spaced output, or clear it for one continuous run.
Press Generate and copy the rows.
- Any length from 1 to 2,048 bits, not rounded to byte boundaries.
- Optional spacing every eight bits for readable byte groups.
- Batch sizes from 1 to 100 sequences per run.
- Every bit is drawn from crypto.getRandomValues, so runs do not repeat a pattern.
- A student learning binary writes out the generated bits and converts each group of eight to a decimal value by hand.
- A network engineer sketching a packet layout uses grouped output to plan where each field starts.
- A developer fuzzing a bit-field parser feeds it 100 runs of 512 random bits to check it never throws.