Skip to main content

Number Base Converter – Any Base 2 to 36

Quick answer

This calculator converts 255 to 11111111₂, FF₁₆ and 377₈ — or any base 2–36.

  • Positional expansion and repeated-division working shown every time.

Figures are estimates from this calculator’s standard formula — adjust the inputs in the tool below for your exact number.

How the Number Base Tool Works

Value = Σ dᵢ·bⁱ, digits 0–9 then A–Z

This tool converts a single input into every base from 2 to 36 simultaneously. The decimal number 255 becomes 11111111₂ (eight ones), FF₁₆ (15×16+15) and 377₈ (3×64+7×8+7) in one pass. Digits above 9 borrow letters: A=10 through Z=35, so base-36 packs two characters per ~5.17 bits. Conversions into decimal use positional expansion — 2F₁₆ = 2×16+15 = 47 — while conversions out of decimal use repeated division: 255 ÷ 16 = 15 r15, and both 15s read as F. The tool validates digits against the chosen base (9 is illegal in octal, G in hex), shows the division ladder for the target base, and includes quick bit-grouping hints: three binary digits per octal digit, four per hex digit. Table output for bases 2, 8, 10 and 16 is highlighted for programming work.

  1. 1

    Type your number

    Any base 2–36, with digits 0–9 and A–Z

  2. 2

    Pick the input base

    Or let the tool infer binary/hex from the pattern

  3. 3

    Convert to decimal

    Positional expansion Σ dᵢ·bⁱ is displayed

  4. 4

    Fan out to all bases

    Every base 2–36 result updates, with division ladders

Use Cases

Programming

Jump 0xFF, 0377 and 0b11111111 conversions for the byte 255

License Plates & Codes

Encode serials in base 36 to shorten them

Math Enrichment

Explore why 255 = 2⁸−1 shows eight 1-bits

Tips

  • 1

    Base b digits never reach b: octal stops at 7, hex at F

  • 2

    255 = FF₁₆ because 15×16 + 15 = 255

  • 3

    Letters as digits: A=10 … Z=35 covers base 36 fully

Common Mistakes

  • Using digit 8 in octal or G in hexadecimal — invalid for the base

  • Reading positional weights left-to-right as increasing; they grow right-to-left

  • Forgetting A–F carry values: F = 15, not a letter to skip

  • Mixing 0x prefixes into manual arithmetic

FAQs

What is 255 in binary, hex and octal?

11111111₂, FF₁₆ and 377₈ — the same byte three ways.

What is FF in decimal?

15×16 + 15 = 255.

How do digits above 9 work?

Letters continue the sequence: A=10, B=11, …, Z=35 for base 36.

Is 9 a valid octal digit?

No — octal digits run 0–7 only. 9 must be written as 11₈.

How do I convert 47 to base 16?

Divide: 47 ÷ 16 = 2 r15, so 2F₁₆.