number base calculator

Number Base Calculator (Base 2 to Base 36)

Convert whole numbers between binary, octal, decimal, hexadecimal, and any base from 2 through 36.

Allowed symbols: 0-9 and A-Z (case-insensitive). Integers only.
Result will appear here.

    Why a number base calculator is useful

    Most of us live in base 10 (decimal), but computers and digital systems constantly switch between other number systems. A number base calculator helps you move quickly between formats without manual errors. Whether you are a student, developer, engineer, or simply curious, base conversion is one of those core skills that appears everywhere.

    Quick refresher: what is a number base?

    A number base (or radix) is how many unique symbols are used before place values roll over. In decimal (base 10), we use 10 symbols (0-9). In binary (base 2), we use only 0 and 1. In hexadecimal (base 16), we use 0-9 and A-F.

    Common bases you will see

    • Base 2 (Binary): used in digital logic and machine-level representation.
    • Base 8 (Octal): compact representation of binary in groups of 3 bits.
    • Base 10 (Decimal): everyday arithmetic and human-friendly counting.
    • Base 16 (Hexadecimal): compact binary notation in programming, memory, and color codes.
    • Base 36: uses 0-9 and A-Z, useful for short IDs and compact encoding.

    How to use this calculator

    1. Enter the number in the Number to convert field.
    2. Set the original base in From base.
    3. Set the destination base in To base.
    4. Click Convert to get the result and quick conversions to common bases.

    Tip: Use the Swap Bases button to reverse direction instantly.

    Manual conversion concept (in plain English)

    From any base to decimal

    Read digits from left to right. Multiply your running total by the base, then add the value of the next digit. For example, binary 1011 becomes: (((1×2 + 0)×2 + 1)×2 + 1) = 11 decimal.

    From decimal to another base

    Repeatedly divide by the target base and track remainders. The converted number is the remainders read backward. Example: 29 decimal to binary gives remainders 1,0,1,1,1, so the result is 11101.

    Real-world use cases

    • Reading and writing hexadecimal values in code and debugging tools.
    • Understanding binary masks, flags, and permissions.
    • Converting IP/network values during systems work.
    • Learning computer architecture and data representation.
    • Creating compact IDs with high-radix encodings (like base 36).

    Common mistakes to avoid

    • Using a digit that does not belong to the source base (like 2 in binary).
    • Forgetting that letters represent values after 9 (A=10, B=11, etc.).
    • Mixing lowercase and uppercase mentally. (The calculator treats both the same.)
    • Assuming fractional numbers are included. This calculator handles integers only.

    Final thought

    Number base conversion is a small skill with a big payoff. Once you understand place values and symbol ranges, you can move confidently between human-readable and machine-friendly representations. Bookmark this calculator and use it whenever you need fast, reliable conversion.

    🔗 Related Calculators