Generate Binary Choices
Create a list of all binary choices of a specific length. Runs entirely in your browser, so your data never leaves your device.
Output
The result appears here as you type.
How to use Generate Binary Choices
- 1. Set the Bit length. Start by choosing the Bit length; there is no text to paste. A length of 2 enumerates 00, 01, 10, 11, and every extra bit doubles the number of rows produced.
- 2. Read the enumeration. The output lists every possible bit string of that length in ascending order, one per line. For n bits you get 2 to the power n rows, so keep lengths modest for readable lists.
- 3. Copy the complete list. Copy the exhaustive listing into your truth table, test matrix or combinatorics worksheet. Changing the Bit length regenerates the full set instantly at the new size.
When to use Generate Binary Choices
Generate Binary Choices enumerates every bit string of a given length, which is the raw material for truth tables, exhaustive test matrices and subset listings. Writing out all sixteen 4-bit combinations by hand is tedious and it is easy to skip one; the generator guarantees the set is complete and ordered.
- Building a truth table skeleton. Designing a 3-input logic function starts with all eight input rows. Generate the 3-bit choices, paste them into a table and fill in the output column for each row.
- Exhaustively testing feature flag combinations. Four boolean flags means sixteen configurations. Enumerate them here, map each bit to a flag and drive a parameterized test through every combination so no interaction goes unchecked.
- Listing subsets of a small set. Each bit string of length n encodes one subset of n items. Generate the strings, treat a 1 as membership, and you have every subset for a combinatorics demonstration.
- Covering a hardware input space. A verification plan for a 5-pin input port needs all 32 stimulus vectors. Copy the generated list into your testbench loop and assert the expected response for each.
Examples
Two bits
Output
00 01 10 11
About the Generate Binary Choices tool
Generate Binary Choices does its work locally, right in the browser. Create a list of all binary choices of a specific length. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Binary Tools collection on EditSafely, a set of 112 small, focused Binary utilities that share the same instant, private workspace.
You can shape the output with the Bit length setting, and the result refreshes the moment you change it. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Generate Binary Choices free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Does the generator send anything to a server?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How do I get a different result?
Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.