DEC, BIN, HEX (Base 2-36) converter / Tool

Commonly used radix

DEC(10)
HEX(16)
BIN(2)

Base 2 to 36

Base 2
Base 3
Base 4
Base 5
Base 6
Base 7
Base 8
Base 9
Base 10
Base 11
Base 12
Base 13
Base 14
Base 15
Base 16
Base 17
Base 18
Base 19
Base 20
Base 21
Base 22
Base 23
Base 24
Base 25
Base 26
Base 27
Base 28
Base 29
Base 30
Base 31
Base 32
Base 33
Base 34
Base 35
Base 36

This is a tool that runs in your browser and converts from 2 to 36 radixes to each other.

  • Enter a number in any radix and it will be automatically converted to everything from binary to 36th decimal.
  • Decimals are not supported.

Base Number Conversion Method

Since radix conversion only changes the notation of the number, the value will not change. However, this is only the case when dealing with integers, and is difficult when dealing with decimals. This tool and article do not support decimals.

Base-N (non-decimal) to decimal

Multiply each n-digit number by N0,N1,...NnN^0, N^1, ... N^n to compute the sum.

e.g. To convert 1101100 in binary to decimal.

0×20+0×21+1×22+1×23+0×24+1×25+1×26+0=1080 \times 2^0+0 \times 2^1 + 1 \times 2^2 + 1 \times 2^3 + 0 \times 2^4 + 1 \times 2^5 + 1 \times 2^6 + 0 = 108

e.g. To convert 6C in hexadecimal to decimal (C = 12).

12×160+6×161=10812 \times 16^0 + 6 \times 16^1 = 108

Decimal to base-N (non-decimal)

  1. Divide the decimal number until the quotient is less than N.
  2. Arrange the remainders in order from the last, with the last quotient at the top.

e.g. To convert 108 in decimal to binary.
108 / 2 = 54, remainder of 0
54 / 2 = 27, remainder of 0
27 / 2 = 13, remainder of 1
13 / 2 = 6, remainder of 1
6 / 2 = 3, remainder of 0
3 / 2 = 1, remainder of 1
-> 1101100

In other words, an algorithm that decomposes into the following forms.

0+0×2+1×22+1×23+0×24+1×25+1×26+00 + 0 \times 2 + 1 \times 2^2 + 1 \times 2^3 + 0 \times 2^4 + 1 \times 2^5 + 1 \times 2^6 + 0

e.g. To convert 108 in decimal to hexadecimal.
108 / 16 = 6, remainder of 12 (C)
-> 6C

Cheat sheet

Dec (10)Bin (2)Qua (4)Oct (8)Hex (16)
11111
210222
311333
41001044
51011155
61101266
71111377
8100020108
9100121119
1010102212A
1110112313B
1211003014C
1311013115D
1411103216E
1511113317F
16100001002010