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.
Runs on your device, nothing uploaded
Output
Generating…
This runs entirely on your device
Generate Binary Choices is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. Nothing is requested from a server, so the result you see has never existed anywhere but here.
- No server involved
- Generated on your device
- Works offline once loaded
- Nothing stored or logged
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. Every possible bit string of that length appears, one per line, in counting order or in Gray code order where only one bit changes from row to row. Turn on Truth-table header to get spaced columns under A B C, ready for a truth table. For n bits you get 2 to the power n rows.
- 3. Copy the complete list. Copy the exhaustive listing into your truth table, test matrix or combinatorics worksheet. Changing the Bit length rebuilds 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
Truth table for two inputs
Output
A B 0 0 0 1 1 0 1 1
3-bit Gray code
Output
000 001 011 010 110 111 101 100
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 4 settings, including Bit length, Order, Truth-table header (A B C …) and Show the decimal value, and the result refreshes the moment you change one. 3 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: results appear as soon as your input does, 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,943 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?
Change a setting. The result is worked out from the settings alone, so the same settings always give the same result, and a change shows up 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 Download saves the result as a file.
Related tools
All Binary Tools →Generate Random Nibbles
Create a sequence of random binary nybbles.
Generate a Binary Sequence
Create a list of increasing or decreasing binary numbers.
Generate Random Double Words
Create a sequence of random binary long words.
Generate an Alternating Binary Sequence
Create a binary number with alternating bits.