Base Converter

High School

Binary (base 2)

0b101010

Octal (base 8)

0o52

Decimal (base 10)

42

Hexadecimal (base 16)

0x2A

Bit Flipper (click to toggle)

Binary Positional Breakdown

1×2^5=32
0×2^4=0
1×2^3=8
0×2^2=0
1×2^1=2
0×2^0=0

32 + 8 + 2 = 42

Formula

N=i=0kdibiN = \sum_{i=0}^{k} d_i \cdot b^i

About

Convert numbers between binary, octal, decimal, and hexadecimal. See the positional breakdown of each digit's contribution, and use the bit flipper to toggle individual bits and watch all representations update instantly.

Controls

Input base

Quick values: