link to home    

Home » Base Conversion »

Convert an Integer

 

Terms of Use | Feedback

 

Conversion Tool

From:

Initial Base

Integer

To:

New Base

downward arrow

Result:
(Integer in
New Base)

 

Help

Examples

From

To

Result

Initial Base

Integer

New Base

10

13

2

(1101)2

2

1101

10

(13)10

16

A345FF9C

2

(10100011010001011111111110011100)2

16

A345FF9C

8

(24321377634)8

3

221002

7

(1655)7

23

{17}{3}{22}

18

({1}{10}{0}{12})18

23

{17}3{22}

2

(10001101111100)2

4

1320

30

({4}{0})30

"Initial Base" Entry

Enter the initial base of the integer (e.g., 2 for binary, 8 for octal, 10 for decimal, 16 for hexadecimal, etc.)

"Integer" Entry

Enter the integer you want to convert to the new base. If the initial base of the integer is between 2 and 16, you may use the digit symbols in the following tables to encode the integer (note that the digit values are in base 10).

Digit Value

Digit Symbol

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

Digit Value

Digit Symbol

8

8

9

9

10

a or A

11

b or B

12

c or C

13

d or D

14

e or E

15

f or F

For any base (larger than 16 or not), you can always encode the integer as a sequence of base 10 digit values contained inside braces. The following table gives some examples of how you could enter the base 10 integer 781.

Base

Integer

10
781
2
1100001101
16
30D
16
{3}{0}{13}
29
{26}{27}

"New Base" Entry

Enter the new base to which the integer is converted (e.g., 2 for binary, 8 for octal, 10 for decimal, 16 for hexadecimal, etc.)