Base Converter

Convert between binary, octal, decimal, and hexadecimal instantly. Includes signed decimal view, grouped digits, ASCII preview, and step-by-step breakdown.

How to Use

  1. Choose the input base: binary, octal, decimal, or hexadecimal.
  2. Enter a whole-number value. Spaces and common base prefixes can be cleaned automatically by the tool.
  3. Review the converted outputs, bit length, and signed decimal interpretation.
  4. Open “Show Work” to see place-value expansion and conversion details.
Base Map
Quick visual of the current value across the four common integer bases.
Bits
Bytes
Sign
ASCII

Binary

Base 2

Octal

Base 8

Decimal

Base 10

Hexadecimal

Base 16
Unsigned decimal
Signed decimal
Normalized input
Input & Settings
Whole numbers only. Negative values are allowed in decimal mode.
Select the base of the value you are entering.
Used for padding, grouping, and signed interpretation.
The tool can clean spaces and common prefixes like 0b, 0o, and 0x.

Show Work (step-by-step)
Work may include cleaned input, positional value expansion, decimal normalization, and output regrouping.

Base Reference

Quick answer: Binary uses 0–1, octal uses 0–7, decimal uses 0–9, and hexadecimal uses 0–9 plus A–F.

Each base is positional, meaning digit value depends on both the symbol and its place.

  • Binary: Base 2, common in logic states and machine representation
  • Octal: Base 8, compact shorthand for groups of 3 binary bits
  • Decimal: Base 10, standard human-readable counting system
  • Hexadecimal: Base 16, compact shorthand for groups of 4 binary bits
1 hex digit
4 bits
1 octal digit
3 bits
8 bits
1 byte
2 hex digits
1 byte

FAQ

Can I enter prefixes like 0x or 0b?

Yes. When “Clean prefixes” is enabled, the tool can strip common prefixes before conversion.

Why is signed decimal different from unsigned decimal?

Signed interpretation treats the highest bit as a sign bit when a bit width is defined, usually using two’s complement rules.

Why does bit width matter?

Bit width affects padding, overflow interpretation, and whether a value is treated as positive or negative in signed mode.

Does this tool convert fractions?

No. This version is for integer conversion only to keep the tool deterministic, fast, and clean.

Tool Info

Last updated:

Updates may include validation improvements, formatting options, and additional conversion detail output.