Number Base Converter

About this tool

Type a whole number, choose the base it is written in (2, 8, 10, 16 or anything up to 36) and read it at once in the other bases. Letters stand for digits above 9, and a digit that does not exist in the chosen base is flagged instead of ignored. The place-value breakdown shows why it works, for example 1011₂ = 1·2³ + 0·2² + 1·2¹ + 1·2⁰ = 11, with exact arithmetic even for very long binary strings. A row of 8 or 16 light bulbs shows the bits: click them to build a number by hand, or press Count up to watch binary counting flip the bulbs like an odometer, with a speed control and a step-by-step mode.

Classroom ideas

  • Give the class 255 and ask how many bulbs must be lit, then reveal FF in hexadecimal and 377 in octal.
  • Click bulbs to build a birthday in binary, then check it by typing the number in base 10.
  • Count up to 16 one step at a time and ask what happens to the bulbs when the number reaches 8.

Related tools