Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly.

Overview

A positional number system represents a value as a sum of digits multiplied by powers of its base. Binary uses base 2, octal base 8, decimal base 10 and hexadecimal base 16, with the letters A to F standing for the values ten to fifteen. The same quantity written in any of them is identical; only the notation changes.

Quick presets

Conversions

Common Values

Decimal Binary Octal Hex
0000
1111
81000108
16100002010
42101010522A
25511111111377FF
1024100000000002000400
655351111111111111111177777FFFF

Click a row to load that value.

Number Bases

  • Binary (Base 2) — digits 0-1, used in computing
  • Octal (Base 8) — digits 0-7, Unix file permissions
  • Decimal (Base 10) — digits 0-9, everyday numbers
  • Hexadecimal (Base 16) — digits 0-F, colors and memory addresses

How to Use

  1. 1
    Enter the value

    Type the amount you want to convert into the Number Base Converter.

  2. 2
    Choose the units

    Select the unit to convert from and the unit to convert to.

  3. 3
    Read the converted value

    The conversion updates instantly in your browser — no button, nothing sent to a server.

About

Hexadecimal is ubiquitous in computing because 16 is 2⁴, so each hex digit maps to exactly four binary digits with no arithmetic. A byte is two hex characters, which makes memory addresses, colour codes and hash values far more readable than the equivalent binary strings while preserving the bit structure.

Octal survives mainly in Unix file permissions, where three bits of read, write and execute map neatly onto a single digit, giving the familiar 755 and 644 modes. Conversion between any two bases proceeds through repeated division by the target base, reading the remainders in reverse.

Frequently Asked Questions

What are the common number bases and when are they used?
Binary (base-2) is used by computers internally. Octal (base-8) was used in early computing. Decimal (base-10) is everyday human counting. Hexadecimal (base-16, using 0–9 and A–F) is widely used in programming for colors (#FF0000), memory addresses, and byte values.
How do I convert decimal to binary?
Repeatedly divide the number by 2 and record the remainders from bottom to top. For example, 42 in binary: 42/2=21 r0, 21/2=10 r1, 10/2=5 r0, 5/2=2 r1, 2/2=1 r0, 1/2=0 r1. Reading remainders bottom-up: 101010.
Why do programmers use hexadecimal?
Hexadecimal compactly represents binary data: each hex digit maps to exactly 4 binary digits. This makes it easy to read memory addresses and byte values. For example, the binary number 11111111 is FF in hex and 255 in decimal. Colors use hex pairs for red, green, and blue channels (#RRGGBB).

관련 계산기