Random Binary Number Generator
Generates a random whole number within a range you choose and shows it in binary (base 2) alongside the decimal value — useful for computer science teaching or practice.
What this generator does
Produces a random number shown in base 2, alongside its decimal value, for number-base practice and for testing code that parses binary input.
How to use this tool
- Set a minimum and maximum.
- Press generate for a random number shown in binary and decimal.
Worked examples
- Format
- 1011 0110 (decimal 182)
Common use cases
- Computer science / binary teaching examples
- Practising decimal-to-binary conversion
- Generating test values for code
Related generators
- Base Conversion Question GeneratorConversions between binary, octal, decimal and hexadecimal, with the answer parsed back to prove it is the same number.
- Random Hex Number GeneratorA number shown in hexadecimal, alongside its decimal value for reference.
- Logic Gate Circuit GeneratorRandom acyclic gate circuits with their equivalent expression and full input-output table, the two required to agree everywhere.
- Gray Code GeneratorBit sequences where consecutive entries differ in exactly one position, checked at every step including the wrap.
- Random Number GeneratorGenerate one or many random numbers within any range, with optional duplicate control and sorting.
- Octal Number GeneratorA random number shown in octal (base 8), alongside its decimal value.