Base Converter Visualizer

Convert between binary, octal, decimal, and hex — with steps you can follow.

Base Converter Visualizer

Base Reference Guide

Popular Number Bases

Binary (Base 2)0, 1
Octal (Base 8)0-7
Decimal (Base 10)0-9
Hexadecimal (Base 16)0-9, A-F

Use Cases

Binary
Computer systems, digital logic
Octal
Unix permissions, legacy systems
Hexadecimal
Colors, memory addresses, debugging

Bases in short

  • Binary (2): 0–1 — bits, flags, low-level work
  • Octal (8): 0–7 — Unix permissions still show it
  • Decimal (10): everyday numbers
  • Hex (16): 0–9A–F — colors, dumps, addresses

Place value is power of the base. Hex digit A is 10; F is 15.

Conversion sketch

  • To decimal: sum digit × base^position
  • From decimal: repeated divide by target base; remainders are digits
  • Binary ↔ hex: group bits by 4 (one hex digit)

Practical notes

  • Prefixed literals: 0b, 0o, 0x in many languages
  • Signed integers often use two's complement — positive conversion ≠ signed bit patterns
  • Prefer integer inputs when you need exact round-trips

Frequently Asked Questions

What bases can I convert?

Binary, octal, decimal, and hexadecimal are the common set. Some UIs allow other bases too.

Why learn hex if computers are binary?

Hex is a compact way to write binary (4 bits per digit). Easier to read than long 0/1 strings.

What does the visualizer show?

Place values and intermediate steps so you see why the answer is what it is — not just a black box.

Can I convert fractions?

Integer conversion is the main path. Fractional bases are trickier and may not be fully supported.

Related converters?

Also see number base converter and binary↔decimal.

Related tools

Related tools