Skip to main content
Skip to main content
DigiCalcs
Back to Guides
4 min read5 Steps

How to Convert Number Bases: Step-by-Step Guide

Learn to manually convert numbers between binary, octal, decimal, and hexadecimal bases using step-by-step methods and formulas.

Skip the math — use the calculator

Step-by-Step Instructions

1

Identify Your Number System and Target Base

First, clearly define the source base of the number you wish to convert and the target base to which you want to convert it. For example, converting `1011_2` (binary) to decimal (`_10`) or `42_10` (decimal) to hexadecimal (`_16`). This initial identification is crucial for selecting the correct conversion method.

2

Convert from Source Base to Decimal (if not already decimal)

If your source number is not already in decimal, convert it to decimal using the positional notation formula: `Value_decimal = Σ (digit_i * base^i)`. Start from the rightmost digit, assigning it a position `i=0`, and increment `i` for each subsequent digit to the left. Multiply each digit by its base raised to its position, then sum these products. For hexadecimal digits (A-F), substitute their decimal equivalents (10-15) before multiplication.

3

Convert from Decimal to Target Base

Once the number is in decimal, convert it to your desired target base using the repeated division method. Divide the decimal number by the target base, noting the remainder. Take the quotient from this division and repeat the process until the quotient becomes zero. Collect all remainders in the order they were generated.

4

Assemble the Result and Handle Non-Decimal Digits

After collecting the remainders, read them in reverse order (from the last remainder to the first) to form your converted number. If the target base is hexadecimal, convert any decimal remainders from 10 to 15 into their corresponding hexadecimal digits (A-F). For other bases, the remainders will directly be the digits of the new number.

5

Common Pitfalls and Verification

Be mindful of common errors such as incorrect place values, arithmetic mistakes, or reversing the order of remainders. Always perform a quick check of your result; for example, converting the result back to the original base should yield the original number. For complex or large numbers, leverage an online number base converter for quick verification or convenience after attempting manual calculation.

How to Convert Number Bases: Step-by-Step Guide

Number base conversion is a fundamental concept in computer science and digital electronics, allowing representation of numerical values in different systems. This guide provides a detailed, step-by-step methodology for manually converting numbers between arbitrary bases, including binary (base-2), octal (base-8), decimal (base-10), and hexadecimal (base-16).

Prerequisites

Before proceeding, ensure you have a foundational understanding of:

  • Place Value Systems: How the position of a digit contributes to its overall value (e.g., in 123, the 1 represents 1 * 10^2).
  • Basic Arithmetic: Proficiency in multiplication, division, and addition.
  • Number Systems: Familiarity with the common number bases and their respective digits. For hexadecimal, remember that A=10, B=11, C=12, D=13, E=14, F=15.

Understanding Number Bases

A number base, or radix, defines the number of unique digits (including zero) used to represent numbers in a positional numeral system. For instance, the decimal system uses 10 digits (0-9), binary uses 2 (0-1), octal uses 8 (0-7), and hexadecimal uses 16 (0-9, A-F).

Core Conversion Principles

There are two primary methods for number base conversion:

  1. Any Base to Decimal: This involves summing the products of each digit by its corresponding place value (base raised to the power of its position).
  2. Decimal to Any Base: This involves repeatedly dividing the decimal number by the target base and collecting the remainders.

Conversions between two non-decimal bases (e.g., binary to hexadecimal) are typically performed by first converting the number to decimal, and then converting the decimal result to the target base.

Worked Example: Binary to Decimal and Decimal to Hexadecimal

Let's convert the binary number 11011_2 to decimal, and then convert 45_10 to hexadecimal.

Example 1: 11011_2 to Decimal

Using the formula Value_decimal = Σ (digit_i * base^i) where i is the position from the right, starting at 0:

11011_2 = (1 * 2^4) + (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) = (1 * 16) + (1 * 8) + (0 * 4) + (1 * 2) + (1 * 1) = 16 + 8 + 0 + 2 + 1 = 27_10

Example 2: 45_10 to Hexadecimal

Using repeated division by the target base (16):

  1. 45 ÷ 16 = 2 remainder 13
  2. 2 ÷ 16 = 0 remainder 2

Reading the remainders from bottom to top: 2 then 13. In hexadecimal, 13 is represented by D. Therefore, 45_10 = 2D_16.

Common Pitfalls

  • Incorrect Place Values: Ensure you assign the correct power of the base to each digit, starting from base^0 for the rightmost digit.
  • Arithmetic Errors: Double-check all multiplications, additions, and divisions, especially with larger numbers.
  • Remainder Order: When converting from decimal to another base, remember to read the remainders in reverse order (from last to first).
  • Hexadecimal Digits: Do not confuse hexadecimal digits A-F with their decimal values (10-15). Always substitute them correctly during conversion.
  • Mixed Bases: Ensure you are performing calculations in the correct base at each step. For example, when multiplying a hexadecimal digit by a power of 16, perform the multiplication in decimal before converting back.

When to Use a Calculator

While manual calculation is crucial for understanding, a number base converter calculator is highly efficient for:

  • Large Numbers: Converting numbers with many digits or values that result in large intermediate products/sums.
  • Complex Bases: Working with bases beyond 16, where manual mapping of digits can become cumbersome.
  • Verification: Quickly checking your manual calculations to ensure accuracy.
  • Speed: Obtaining instant results for routine conversions in a professional or academic setting.

For educational purposes, always attempt manual conversion first, then use a calculator to validate your work. This reinforces the underlying principles and helps identify areas where errors might occur.

Ready to Calculate?

Skip the manual work and get instant results.

Open Calculator

Settings

PrivacyTermsAbout© 2026 DigiCalcs