125 in Binary

125 in binary is 111 1101 (1111101).

Result 1111101.

Binary (base 2)111 1101

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    125 ÷ 2621
    62 ÷ 2310
    31 ÷ 2151
    15 ÷ 271
    7 ÷ 231
    3 ÷ 211
    1 ÷ 201
  2. Read the remainders from bottom to top: 111 1101
binary (base 2)111 1101
octal (base 8)175
decimal (base 10)125
hexadecimal (base 16)7D
Bits needed7 bits (fits in 1 byte)
8-bit form0111 1101
16-bit form0000 0000 0111 1101
32-bit form0000 0000 0000 0000 0000 0000 0111 1101

Quick method for 125

Find the powers of 2 that add up to 125: 64 + 32 + 16 + 8 + 4 + 1. Put a 1 in those places and 0 elsewhere: 1111101.

125 in other forms

  • Place values: 64 + 32 + 16 + 8 + 4 + 1 = 125
  • Hex: 7D
  • Octal: 175
  • 7 bits — fits in one byte
  • 6 one-bits (even parity)
  • Padded: 0111 1101
  • 16-bit: 0000 0000 0111 1101
  • One's complement (8-bit): 1000 0010
  • Between 26 = 64 and 27 = 128
  • −125 in 8-bit two's complement: 1000 0011
  • ASCII: “}” — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

125 in binary: questions

What is 125 in binary?

1111101.

What is 125 in hex?

7D.

How many bits is 125?

7.