A number base converter works by interpreting each digit according to its base and place value, then rewriting the same integer in the target numeral system.
The “from base” setting determines how the digits you enter are interpreted, while the “to base” setting determines how the result is written. The quantity does not change; only its representation does. Understanding those two roles makes both the tool’s behavior and the underlying mathematics straightforward.

What a base changes about a number
A base, also called a radix, sets both the number of digit symbols a system can use and the value of each position. Moving one place to the left multiplies that position’s weight by the base. Decimal therefore counts in powers of 10, binary in powers of 2, octal in powers of 8, and hexadecimal in powers of 16. Choosing the wrong “from base” changes the number being read even when the visible characters remain exactly the same.
| System | Allowed digit symbols | Position values | Common context |
|---|---|---|---|
| Binary | 0–1 | 1, 2, 4, 8, 16, and so on | Hardware states and bit-level values |
| Octal | 0–7 | 1, 8, 64, 512, and so on | Unix file permissions |
| Decimal | 0–9 | 1, 10, 100, 1,000, and so on | Everyday arithmetic |
| Hexadecimal | 0–9 and A–F | 1, 16, 256, 4,096, and so on | Memory addresses, byte values, and CSS colors |
Hexadecimal is useful partly because one hex digit corresponds to exactly four binary bits, making it a compact way to display binary quantities. It is commonly used for memory addresses, byte values, CSS colors such as #FF8800, MAC addresses, and hash digests. Octal still appears in Unix file permissions such as chmod 755. These systems are not different arithmetic rules; they are different ways of writing the same underlying integer.
Reading the input by place value
On the input side, the converter uses positional expansion. If b is the source base and the digits are dₙ…d₁d₀, the value is calculated as dₙ × bⁿ + … + d₁ × b + d₀. Each digit is multiplied by its place weight, and those terms are added. This is how a written sequence becomes one numerical value regardless of the notation used.
For example, binary 1010 expands as (1 × 2³) + (0 × 2²) + (1 × 2¹) + (0 × 2⁰) = 8 + 0 + 2 + 0 = 10 in decimal.
Letter symbols are treated as digit values, not as ordinary text. In hexadecimal, A through F represent the values ten through fifteen. Higher bases continue alphabetically through base 36. A leading minus sign applies to the entire integer rather than taking up a position in the numeral.
Writing the value in the target base
Once the source value is known, the target representation can be generated by repeatedly dividing the integer by the target base. Each division produces a remainder, which becomes a target digit, while the quotient is divided again. The process ends when the quotient reaches zero. Because the remainders emerge from right to left, they are read in reverse order to form the final answer.
The Number Base Converter automates both parts: it interprets the source digits, calculates the integer value, and writes that value in the chosen output base. The output also displays binary, octal, decimal, and hexadecimal together, so the same quantity can be compared across the four common systems without repeating the conversion.
For bases above ten, values above nine are written with letters. The same sign rule applies throughout, and the selected “to base” controls the format of the converted result rather than the value of the integer.
Convert a number with Number Base Converter
- Enter the integer. Type the whole number you want to convert into the value field. A leading minus sign is accepted, and alphabetic digits are case-insensitive.
- Set both bases. Choose “from base” to match the system in which your input is written, then choose “to base” for the system you want to read. An entry using the familiar A–F symbols is commonly hexadecimal, although other bases above ten also use letters.
- Read the result. Read the selected converted value, then compare it with the binary, octal, decimal, and hexadecimal values shown at the same time.
The converter updates the result as you type. Once the input and both base settings are correct, the selected result and the four common representations provide both the answer and a convenient cross-check of the same value.
Validation that catches invalid digits
Every character is checked against the selected source base before it is accepted as part of the numeral. Binary permits only 0 and 1, octal permits 0 through 7, decimal permits 0 through 9, and hexadecimal permits 0 through 9 plus A through F. An input such as 102 in binary or G in hexadecimal therefore contains an illegal character. Instead of silently dropping that character and returning a misleading answer, the converter identifies the exact bad character so you can correct the entry.
Letter case does not matter: FF and ff represent the same input. A subtler mistake is selecting the wrong source base when the digits happen to be legal in both systems. The converter can follow the selected rule, but only you know which notation the original value was meant to use.
Reading the all-bases result
When the converter displays binary, octal, decimal, and hexadecimal together, treat the four entries as four spellings of one integer. The selected “to base” identifies the converted result you requested; the common-base entries are simultaneous reference values. To interpret any of them, read from right to left and multiply each symbol by its place value in that row’s system. Letters occupy ordinary digit slots in hexadecimal and in bases above ten.
The combined view can make errors easier to spot because a valid conversion preserves the quantity while changing its notation. It also helps when another part of a technical workflow expects a particular form, such as a hexadecimal byte value alongside its binary representation. The converter does not change the integer; it supplies different representations of the same result.
Where number bases appear in technical work
Binary is the native notation of hardware because each bit represents an off or on state. Hexadecimal provides a shorter human-readable form for groups of binary data, while octal offers a three-bit grouping that appears in Unix permissions. These formats show up in low-level programming, networking, debugging, and digital electronics. Seeing one number in several bases can help you compare a byte value with its binary flags, inspect a memory address, or check a hexadecimal color before moving between representations.
The simultaneous four-base view is also useful when a result needs to be copied into a format expected by a system, log, or configuration file. The number may look different in each place, but a correct conversion keeps the represented quantity identical.
Precision, range, and privacy
The converter uses arbitrary-precision integer arithmetic, so very large whole numbers are handled exactly without the overflow or rounding associated with a fixed-size computer integer. It supports any source or target base from 2 through 36, along with a leading minus sign. The important limitation is that it converts integers only: fractional values and decimal points are not supported because fraction conversion requires a different, more involved process.
All processing happens client-side in your browser, and your numbers are never uploaded. That keeps the conversion private while still allowing exact results for large integers. For a fractional value, use a specialized fraction or rational-number workflow rather than forcing the input into this whole-number converter.