Developer

Number base converter

Convert numbers between binary, octal, decimal and hexadecimal.

Binary

11111111

Octal

377

Decimal

255

Hex

ff

How it works

1

Enter a number

Type a value in any base — binary, octal, decimal or hex.

2

See every base

The other representations update live as you type.

3

Copy

Copy the base you need for your code or calculation.

Frequent questions

Which bases are supported?
Binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16) — the bases developers reach for most.
Can I convert in both directions?
Yes. Enter a value in any base and the others are computed at once, so there is no separate “from” and “to”.