Skip to content
kitify
Esc
↑ ↓ to moveEnter to open

Binary, decimal and hex converter

Type a number in any box and the others update. Huge numbers work too, with no rounding.

8 bits · 1 byte · character "ÿ"

1111 1111

How to convert binary to decimal

Each binary digit is worth twice the one to its right. For 1101: 1×8 + 1×4 + 0×2 + 1×1 = 13. Type the binary number into the Binary box and the decimal, hex and octal values appear instantly.

Quick reference

DecimalBinaryHexOctal
101010A12
151111F17
16100001020
100110010064144
25511111111FF377
1024100000000004002000

Prefixes like 0x, 0b and 0o are accepted, and spaces or underscores between digits are ignored. Numbers are handled with BigInt, so a 256-bit value converts exactly.

Questions people ask

How do I convert decimal to hex?

Type the decimal number into the Decimal box. The hexadecimal value appears in the Hexadecimal box, ready to copy.

Can it handle negative numbers?

Yes, with a minus sign. It doesn't show two's complement; for that, convert the positive value and invert the bits for your word size.

What bases are supported?

Binary, octal, decimal and hex are always shown, and the last box can be set to any base from 2 to 36, such as base 36 for short IDs.