Base Converter

Free base converter to convert numbers between any base from 2 to 36. Supports binary, octal, decimal, hexadecimal and custom bases, including fractional and negative values.

Use digits 0–9 and letters A–Z (for bases above 10). Only one decimal point is allowed.

How to Use This Calculator

Type your number exactly as it appears in the source base, choose the origin and target bases, then hit Convert number to refresh every panel. The helper buttons load the default example, swap the selected bases, or clear the entry so you can start over.

  1. Include one optional sign (±) at the start and at most one decimal point.
  2. Select a base between 2 and 36 for the current representation.
  3. Pick a destination base in the same range and press Convert.
  4. Compare the main result with the quick Binary/Octal/Decimal/Hex outputs for confirmation.

Methodology

Conversions happen in two conceptual steps: the tool first parses the string into a precise integer or floating point value in decimal, then re-encodes that value into the requested base. Integer conversions use exact BigInt math so they stay precise, while fractional parts track digits with a capped precision to keep the output deterministic.

Results are estimates when fractional digits are involved; very long fractions may round after 16 digits. Always double-check critical values if you need perfect fidelity for engineering or cryptographic work.

Full original guide (expanded)

What is a number base?

A number base (or radix) is the number of distinct digits used to write numbers in a positional numeral system. In everyday life we mostly use base 10 (decimal), which has digits 0–9. Computers, however, naturally work in base 2 (binary).

In any base b, digits run from 0 up to b − 1. For bases above 10, we use letters A, B, C, … to represent values 10, 11, 12, and so on. For example, in base 16:

A = 10, B = 11, C = 12, D = 13, E = 14, F = 15

Place-value representation

Any number in base b can be written as a sum of powers of b. For example, the decimal number 57 in base 10 can be written as:

57 = 5 × 10² + 7 × 10⁰

In base 2, the binary number 1011₂ represents:

1011₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰ = 11₁₀

Integer part and fractional part

When a decimal point is present, the part to the left is the integer part, and the part to the right is the fractional part. In base b, a number like:

dₖ … d₂ d₁ d₀ . f₁ f₂ … fₙ

corresponds to

dₖ b^k + … + d₂ b² + d₁ b¹ + d₀ b⁰ + f₁ b⁻¹ + f₂ b⁻² + … + fₙ b⁻ⁿ

How base conversion works

Converting between bases typically happens in two conceptual steps:

  1. Convert the original representation to an internal decimal value.
  2. Convert that decimal value to the target base.

Step 1 – from base b to decimal

To convert from an arbitrary base b to decimal, multiply each digit by its positional weight (a power of b) and sum everything. For example, converting 7F₁₆ to decimal:

7F₁₆ = 7 × 16¹ + 15 × 16⁰ = 7 × 16 + 15 = 127₁₀

Step 2 – from decimal to base b

To convert a decimal integer N to base b, repeatedly divide by b and collect remainders:

  1. Divide N by b. The remainder is the least significant digit.
  2. Replace N with the quotient and repeat until the quotient is 0.
  3. Read the remainders from last to first; this gives the digits in the new base.

For the fractional part, repeatedly multiply by b and collect the integer part at each step.

Common number bases

  • Binary (base 2): digits 0–1. Used internally by all digital hardware.
  • Octal (base 8): digits 0–7. Historically used in some systems; still appears in permissions in Unix.
  • Decimal (base 10): digits 0–9. The standard numeral system for everyday arithmetic.
  • Hexadecimal (base 16): digits 0–9 and A–F. Very common in programming, memory addresses, color codes and networking.

Using this base converter effectively

  1. Enter the number exactly as it is written in its original base.
  2. Select the correct From base and To base.
  3. Click Convert number and review the main output and the quick "Binary–Octal–Decimal–Hex" panel.
  4. Compare the converter’s result with manual calculations to build confidence and intuition.

Study tip: check your own work

  1. Try to perform the base conversion by hand using the methods described on this page.
  2. Use the Base Converter to verify your result.
  3. If there is a mismatch, inspect where the algorithm or a digit was misapplied.
  4. Repeat with different numbers until the process becomes automatic.

Base converter – FAQ

What is a base converter?

A base converter is a digital tool that rewrites the same numeric value using a different numeral system. For example, it can show that 255₁₀ is the same value as FF₁₆, 11111111₂ and 377₈.

Which bases does this tool support?

The selector allows any integer base from 2 up to 36. That includes binary (2), octal (8), decimal (10), hexadecimal (16) and many other custom bases that appear in coding puzzles or specialised algorithms.

Can I enter negative or fractional numbers?

Yes. You can start the number with a minus sign for negative values, and you may include one decimal point to represent fractions (for example -101.11 in base 2 or 3A.F in base 16). The converter processes both the integer and fractional parts.

What happens if I use digits that are invalid for the chosen base?

The calculator validates your input and shows a clear error message if a digit is not allowed in the selected base (for example, using 8 in base 8 or G in base 16). Correct the digit or change the base and try again.

Where are base conversions used in real projects?

Base conversions are everywhere in computing: encoding and decoding data, working with bitmasks, reading memory dumps, interpreting color codes, writing low-level drivers and debugging network protocols. Being fluent with binary, decimal and hexadecimal is a core skill for developers and computer engineers.

Formulas
  • A = 10, B = 11, C = 12, D = 13, E = 14, F = 15
  • 57 = 5 × 10² + 7 × 10⁰
  • 1011₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰ = 11₁₀
  • dₖ b^k + … + d₂ b² + d₁ b¹ + d₀ b⁰ + f₁ b⁻¹ + f₂ b⁻² + … + fₙ b⁻ⁿ
  • 7F₁₆ = 7 × 16¹ + 15 × 16⁰ = 7 × 16 + 15 = 127₁₀
Citations
Changelog
  • 0.1.0-draft — 2026-01-19: Initial audit spec draft generated from HTML extraction (review required).
  • 0.1.0-draft — 2026-01-19: Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • 0.1.0-draft — 2026-01-19: Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0