300 in binary
The decimal number 300 written in binary is 100101100. In hexadecimal it is 12C, and in octal 454.
| Base | Value |
|---|---|
| Decimal (base 10) | 300 |
| Binary (base 2) | 100101100 |
| Hexadecimal (base 16) | 12C |
| Octal (base 8) | 454 |
How 300 converts to binary
Binary is base 2, so each place is worth twice the one to its right: 1, 2, 4, 8, 16, and so on. Adding up the place values that have a 1 gives back the decimal number:
256 + 32 + 8 + 4 = 300
That is why 300 in decimal is 100101100 in binary: it is exactly the set of powers of two that add up to 300. To get the hexadecimal form, group the bits into fours from the right and write each group as one hex digit, which gives 12C.
Convert any number
Type any value and watch all three bases update live in the binary converter, or read the theory behind it in the lessons on binary numbers and hexadecimal.
Want to build the circuit that does this? Open the lab and wire up an adder, or follow the free course from a single transistor up to an 8-bit CPU.
Open the binary converter →Frequently asked
What is 300 in binary?
300 in binary is 100101100. That is the sum of the powers of two 256 + 32 + 8 + 4, which add up to 300.
What is 300 in hexadecimal?
300 in hexadecimal is 12C. You get it by grouping the binary digits 100101100 into fours from the right and writing each group as one hex digit.
How many bits is 300?
300 needs 9 bits in binary (100101100). It fits in 16 bits (two bytes).