Online Number Base Converter
The PikaConverter Number Base Converter is a free online tool for converting numbers between bases 2 and 36. It supports common numeral systems such as binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16), along with other bases including ternary (base 3) and base 36.
This online base converter is useful for students, programmers, engineers, and anyone working with number systems in mathematics or computer science.
Simply select the original number base, choose the target base, enter your number, and view the converted result. The conversion changes the number's representation while preserving its mathematical value.
How to Use the Base Converter
Use the PikaConverter Base Converter to convert numbers between any two bases from 2 to 36:
1. Select the source base: Choose the original number system from the From dropdown menu.
2. Select the target base: Choose the number system you want to convert to from the To dropdown menu.
3. Enter your number: Type the value using digits that are valid for the selected source base.
4. View the result: Check the converted number in the Result section.
5. Copy or share: Use the available options to copy or share the result.
For example, to convert binary 1010 to base 3, select Base 2 (Binary) as the source, Base 3 as the target, and enter 1010.
Result: 1010₂ = 101₃
Both representations have the same decimal value: 10.
What Is a Number Base?
A number base, also called a radix, determines how many distinct digit symbols are used to represent numbers in a positional numeral system.
The most common number bases are binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
Each number system uses a different set of digits, but the underlying numerical value remains unchanged when a number is converted correctly.
Number System | Base | Valid Digits | Example |
Binary | 2 | 0, 1 | 1010₂ |
Ternary | 3 | 0, 1, 2 | 101₃ |
Octal | 8 | 0–7 | 12₈ |
Decimal | 10 | 0–9 | 10₁₀ |
Hexadecimal | 16 | 0–9, A–F | A₁₆ |
For example, the number ten can be represented as:
· Binary: 1010
· Ternary: 101
· Octal: 12
· Decimal: 10
· Hexadecimal: A
These representations all describe the same quantity.
Base 2 to Base 36 Converter
The PikaConverter Base Converter allows you to select any number base from 2 to 36 for both the source and target number systems.
In bases greater than 10, letters are commonly used to represent digit values beyond 9. For example, A represents 10, B represents 11, and Z represents 35 in base 36.
Number Base | Name | Available Digits |
Base 2 | Binary | 0–1 |
Base 3 | Ternary | 0–2 |
Base 8 | Octal | 0–7 |
Base 10 | Decimal | 0–9 |
Base 12 | Duodecimal | 0–9, A–B |
Base 16 | Hexadecimal | 0–9, A–F |
Base 20 | Vigesimal | 0–9, A–J |
Base 32 | Base 32 positional notation | 0–9, A–V |
Base 36 | Base 36 positional notation | 0–9, A–Z |
For example, the decimal number 35 is represented as Z in base 36, while decimal 36 is represented as 10 in base 36.
A number with the same written digits may have different values in different bases. For example, 101 in base 2 equals decimal 5, while 101 in base 3 equals decimal 10.
Binary to Decimal Converter
A binary to decimal converter converts numbers from base 2 into base 10.
The binary number system uses only two digits: 0 and 1. Each digit represents a power of 2 based on its position.
To convert binary to decimal manually, multiply each binary digit by its corresponding power of 2 and add the results.
How to Convert Binary to Decimal
Consider the binary number:
101101₂
Starting from the rightmost digit, the positions correspond to powers of 2.
101101₂ = (1 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (1 × 2²) + (0 × 2¹) + (1 × 2⁰)
= 32 + 0 + 8 + 4 + 0 + 1
Result: 101101₂ = 45₁₀
To perform this conversion using PikaConverter, select Binary as the source base and Decimal as the target base, then enter 101101.
Decimal to Binary Converter
A decimal to binary converter changes a base-10 number into its equivalent base-2 representation.
Binary numbers are essential in digital electronics, programming, and computer systems because they represent values using only 0s and 1s.
How to Convert Decimal to Binary
One common manual method is repeated division by 2.
For example, convert decimal 45 to binary.
Division | Quotient | Remainder |
45 ÷ 2 | 22 | 1 |
22 ÷ 2 | 11 | 0 |
11 ÷ 2 | 5 | 1 |
5 ÷ 2 | 2 | 1 |
2 ÷ 2 | 1 | 0 |
1 ÷ 2 | 0 | 1 |
Read the remainders from bottom to top.
Result: 45₁₀ = 101101₂
The same method can be used to convert a positive decimal integer into other bases by dividing by the target base instead of 2.
Binary to Hexadecimal Converter
A binary to hexadecimal converter changes a binary number into base 16.
Hexadecimal uses sixteen symbols: the digits 0–9 and the letters A–F, representing decimal values 10–15.
Each hexadecimal digit corresponds to exactly four binary digits, making conversion between binary and hexadecimal particularly convenient.
How to Convert Binary to Hexadecimal
Consider the binary number:
11010110₂
Divide the digits into groups of four, starting from the right:
1101 0110
Convert each group into its hexadecimal equivalent:
· 1101 = D
· 0110 = 6
Result: 11010110₂ = D6₁₆
This grouping method is commonly used in computer science because it provides a direct relationship between binary and hexadecimal notation.
Hexadecimal to Decimal Converter
A hexadecimal to decimal converter converts a base-16 number into its equivalent base-10 value.
Hexadecimal numbers use digits 0–9 and letters A–F. Each position represents a power of 16.
How to Convert Hexadecimal to Decimal
Consider the hexadecimal number:
2F₁₆
The letter F represents decimal 15.
Using positional values:
2F₁₆ = (2 × 16¹) + (15 × 16⁰)
= 32 + 15
Result: 2F₁₆ = 47₁₀
For longer hexadecimal numbers, the same process applies to every digit.
For example:
1A3₁₆ = (1 × 16²) + (10 × 16¹) + (3 × 16⁰)
= 256 + 160 + 3
Result: 1A3₁₆ = 419₁₀
Decimal to Hexadecimal Converter
Converting decimal to hexadecimal involves repeatedly dividing a decimal integer by 16 and recording the remainders.
For example, convert decimal 255 to hexadecimal.
255 ÷ 16 = 15 remainder 15
15 ÷ 16 = 0 remainder 15
In hexadecimal notation, the value 15 is represented by F.
Reading the remainders from bottom to top gives:
255₁₀ = FF₁₆
Hexadecimal notation provides a more compact representation of binary values and is frequently used in programming and digital systems.
Octal Number Converter
The octal number system uses base 8 and includes digits from 0 to 7.
An octal converter is useful for converting values between octal, binary, decimal, and other number systems.
Each octal digit corresponds to three binary digits.
How to Convert Octal to Decimal
Consider:
157₈
Multiply each digit by the corresponding power of 8:
157₈ = (1 × 8²) + (5 × 8¹) + (7 × 8⁰)
= 64 + 40 + 7
Result: 157₈ = 111₁₀
How to Convert Binary to Octal
Binary numbers can be converted directly into octal by grouping the digits into sets of three, starting from the right.
For example:
110101₂
Split into groups:
110 101
Convert each group:
· 110 = 6
· 101 = 5
Result: 110101₂ = 65₈
Number Base Conversion Formula
Number systems use positional notation, meaning each digit has a value determined by its position and the base.
The general formula for converting a nonnegative integer from base b to decimal is:
N = d₀ × b⁰ + d₁ × b¹ + d₂ × b² + ... + dₙ × bⁿ
Where:
N is the decimal value of the number.
b is the source base.
d represents each digit's numerical value.
n represents the digit position, starting from zero on the right.
Example of Base Conversion
Convert the base-3 number 2101 into decimal.
2101₃ = (2 × 3³) + (1 × 3²) + (0 × 3¹) + (1 × 3⁰)
= 54 + 9 + 0 + 1
Result: 2101₃ = 64₁₀
This positional method works for any valid integer base greater than or equal to 2.
Converting Decimal to Another Base
To convert a nonnegative decimal integer into another base:
Divide the number by the target base.
Record the remainder.
Divide the quotient by the target base again.
Continue until the quotient becomes zero.
Read the remainders in reverse order.
For example, converting decimal 20 to base 3:
20 ÷ 3 = 6 remainder 2
6 ÷ 3 = 2 remainder 0
2 ÷ 3 = 0 remainder 2
Reading the remainders from bottom to top gives:
20₁₀ = 202₃
This method is widely used to explain how number base conversion works.
Binary, Octal, Decimal and Hexadecimal Conversion Table
The following reference table shows equivalent values in the four most common number systems.
Decimal | Binary | Octal | Hexadecimal |
0 | 0000 | 0 | 0 |
1 | 0001 | 1 | 1 |
2 | 0010 | 2 | 2 |
3 | 0011 | 3 | 3 |
4 | 0100 | 4 | 4 |
5 | 0101 | 5 | 5 |
6 | 0110 | 6 | 6 |
7 | 0111 | 7 | 7 |
8 | 1000 | 10 | 8 |
9 | 1001 | 11 | 9 |
10 | 1010 | 12 | A |
11 | 1011 | 13 | B |
12 | 1100 | 14 | C |
13 | 1101 | 15 | D |
14 | 1110 | 16 | E |
15 | 1111 | 17 | F |
16 | 10000 | 20 | 10 |
Binary values from 0 to 15 are displayed using four digits for easier comparison. Leading zeros do not change the numerical value.
Applications of Number Base Conversion
Number base conversion plays an important role in computer science, electronics, mathematics, and digital technology.
Computer Programming
Programmers regularly work with binary, decimal, and hexadecimal numbers.
Binary represents values at the bit level, while hexadecimal provides a compact way to read and write binary data.
For example:
11111111₂ = 255₁₀ = FF₁₆
All three forms represent the same numerical value.
Digital Electronics
Digital circuits operate using binary states, commonly represented by 0 and 1.
Engineers use binary numbers to describe logical states, bit patterns, control registers, and digital signals.
Converting between bases helps when interpreting numerical values in embedded systems and electronic devices.
Computer Memory and Data Representation
Memory addresses, byte values, and debugging information are often displayed in hexadecimal notation.
For example, one byte contains eight bits and can represent 256 distinct values.
An eight-bit unsigned value ranges from:
00000000₂ = 0₁₀
to:
11111111₂ = 255₁₀
In hexadecimal, the same range is represented by 00 through FF.
Mathematics and Education
Number system conversion is an important topic in mathematics and computer science education.
Students learn how positional notation works, how to express values in different bases, and how powers are used to determine the value of each digit.
Common Number Base Conversion Mistakes
Several common errors can lead to incorrect conversions.
Using invalid digits: A binary number can contain only 0 and 1. For example, 102 is not a valid base-2 number.
Selecting the wrong source base: The value 1010 represents different quantities depending on whether it is interpreted as binary, decimal, or another base.
Reading remainders in the wrong order: When converting a decimal integer to another base, read division remainders from bottom to top.
Confusing hexadecimal letters with decimal digits: In hexadecimal, A represents 10 and F represents 15.
Ignoring digit positions: Each position represents a different power of the base.
Confusing numerical value with representation: Converting a number to another base changes its notation, not its underlying value.
Assuming leading zeros change the value: The binary numbers 1010 and 00001010 represent the same unsigned integer.
Checking the selected source and target bases helps prevent many of these mistakes.
Frequently Asked Questions
What is a base converter?
A base converter is a mathematical tool that changes the representation of a number from one numeral system to another while preserving its numerical value.
What number bases does PikaConverter support?
PikaConverter provides source and target base selections ranging from base 2 to base 36. This includes binary, ternary, octal, decimal, hexadecimal, and other positional number systems.
How do I convert numbers between different bases?
Select the source base and target base in the PikaConverter tool, enter a valid number, and check the converted result.
How do I convert binary to decimal?
Multiply each binary digit by its corresponding power of 2 and add the results. For example, 1010₂ = 8 + 2 = 10₁₀.
How do I convert decimal to binary?
Divide the decimal integer by 2 repeatedly, record the remainders, and read them from bottom to top. For example, 13₁₀ = 1101₂.
What is 255 in binary?
The decimal number 255 is represented as 11111111 in binary.
What is 11111111 in decimal?
The binary number 11111111 equals 255 in decimal.
How do I convert binary to hexadecimal?
Group the binary digits into sets of four starting from the right, then replace each group with the corresponding hexadecimal digit.
For example, 11111111₂ = FF₁₆.
What is the difference between octal and hexadecimal?
Octal uses base 8 with digits 0–7, while hexadecimal uses base 16 with digits 0–9 and A–F. One octal digit corresponds to three binary bits, while one hexadecimal digit corresponds to four binary bits.
How do I convert a number from base 2 to base 36?
Select Base 2 (Binary) as the source and Base 36 as the target, then enter a valid binary number. For example, binary 100011 equals decimal 35, which is represented as Z in base 36.
Can I convert numbers from base 2 to base 3?
Yes. For example, 1010₂ = 101₃. Both representations equal 10 in decimal.
Why are hexadecimal numbers used in programming?
Hexadecimal offers a compact representation of binary values. Each hexadecimal digit corresponds to four binary bits, making it easier to read memory addresses, byte values, and bit patterns.
Does converting a number to another base change its value?
No. Base conversion changes only how the number is written. For example, 10₁₀, 1010₂, and A₁₆ all represent the same quantity.
Is the PikaConverter Base Converter free?
Yes. PikaConverter provides a free online number base converter for converting numbers between bases 2 and 36.