Number conversion

Number Base Converter

Convert integers from any base 2 through base 36 to any other base. Get binary, octal, decimal, hexadecimal, grouped byte output, ASCII hints, validation, and calculation steps in one place.

Base input

Convert from any base

base 2-36

Result number FF 255 in base 10 equals FF in base 16.

Common bases

Binary, octal, decimal, and hexadecimal

Binary11111111base 2
Octal377base 8
Decimal255base 10
HexadecimalFFbase 16
Grouped binary1111 11114-bit groups
Grouped hexFFbyte groups

Developer view

ASCII / UnicodeU+00FF: y with diaeresis
Bit length8 bits
Byte length1 byte
SignPositive integer

Calculation steps

Base to decimal

255 = 2 x 10^2 + 5 x 10^1 + 5 x 10^0 = 255

Decimal to destination base

255 / 16 = 15 remainder 15 (F)
15 / 16 = 0 remainder 15 (F)
Read remainders upward: FF

How to convert from any base to any base

1. Source base to decimalMultiply each digit by the source base raised to the digit position, starting from position 0 at the right.
2. Decimal to target baseDivide by the target base repeatedly and collect each remainder as the next digit.
3. Digit values above 9A=10, B=11, C=12, D=13, E=14, F=15, and so on through Z=35.
4. Integer scopeThis converter focuses on integers, which covers most binary, hex, byte, ID, and programming use cases.

Common base reference table

DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
15111117F
161 00002010
2551111 1111377FF

FAQ

What bases are supported?

This converter supports integer conversion from base 2 through base 36.

Can I convert hexadecimal values like 0xFF?

Yes. Prefixes such as 0x, 0b, and 0o are accepted when they match the selected base.

Why does base 36 use letters?

Base 36 uses digits 0-9 plus letters A-Z, giving 36 possible digit symbols.