Number Base Converter

Convert between binary, octal, decimal, and hexadecimal

Number Base Guide

BaseNameDigitsPrefixUse
2Binary0-10bLow-level programming
8Octal0-70oUnix file permissions
10Decimal0-9Everyday use
16Hexadecimal0-9, A-F0xColors, memory addresses

How to Use

  1. Enter a number in any base
  2. Select the input base
  3. View conversions to all bases instantly

Frequently Asked Questions

What is a number base?

A number base (or radix) is the number of unique digits used to represent numbers. Common bases: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16).

How does binary work?

Binary uses only 0 and 1. Each position represents a power of 2: 1, 2, 4, 8, 16, etc. For example, binary 1010 = 8+0+2+0 = 10 in decimal.

Why is hexadecimal used in programming?

Hexadecimal is compact (one hex digit = 4 binary digits) and commonly used for memory addresses, color codes, and byte values.

Is my data safe?

Yes. All conversions happen in your browser. No data is sent to any server.