Util Tools logo Util Tools
Converters

Free Number Base Converter Online

Convert numbers between binary, octal, decimal, hexadecimal, and any base from 2 to 36. Big numbers keep full precision (BigInt), with a step-by-step breakdown and a bitwise calculator.

  • 100% free
  • No signup
  • Runs in your browser

Step-by-step breakdown

Bitwise operations

Enter two integers (decimal) and pick an operation. Results shown in all bases.

Common conversions

Decimal Binary Octal Hex
0 0 0 0
1 1 1 1
10 1010 12 A
16 10000 20 10
100 1100100 144 64
255 11111111 377 FF
1000 1111101000 1750 3E8
Guide

What is a number base?

A number base (or radix) is how many distinct digits a counting system uses. We normally use base 10 (decimal) with digits 0 to 9. Computers use base 2 (binary) with only 0 and 1, and programmers often use base 16 (hexadecimal) with digits 0 to 9 plus A to F. This converter translates a value between binary, octal (base 8), decimal, hexadecimal, and any base from 2 to 36.

How conversion works

Every base represents the same underlying quantity; only the notation changes. To convert decimal to binary, you repeatedly divide by 2 and read the remainders from bottom to top. To convert binary back to decimal, you multiply each digit by its place value (a power of 2) and add them up. The tool shows this step-by-step breakdown and uses arbitrary-precision integers, so very large numbers keep their exact value.

Why hexadecimal is everywhere in computing

Hexadecimal is popular because it maps cleanly onto binary: one hex digit equals exactly four bits, so a byte (8 bits) is just two hex digits. That makes hex a compact, human-readable shorthand for binary data. You will see it in color codes (#FF8800), memory addresses, MAC addresses, hashes, and byte dumps. Octal (base 8) plays a similar role in a few places, most notably Unix file permissions.

Quick reference

  • Decimal 10 = binary 1010 = octal 12 = hex A
  • Decimal 255 = binary 11111111 = hex FF (one byte's maximum)
  • 1 hex digit = 4 bits; 2 hex digits = 1 byte

Last updated: July 2026

Frequently Asked Questions

How do I convert decimal to binary?
Repeatedly divide the decimal number by 2, recording the remainder each time, until you reach 0. Reading the remainders from bottom to top gives the binary equivalent. This tool shows every step automatically.
How do I convert binary to decimal?
Multiply each binary digit by its positional power of 2 (starting from the rightmost digit as 2⁰) and sum the results. For example, binary 1010 = (1×8) + (0×4) + (1×2) + (0×1) = 10.
What is hexadecimal used for?
Hexadecimal (base 16) is widely used in computing for representing memory addresses, color codes (like #FF5733), and binary data in a more compact, human-readable form. Each hex digit represents exactly 4 binary bits.
What is the difference between octal and hexadecimal?
Octal is base 8, using digits 0–7. Hexadecimal is base 16, using digits 0–9 and letters A–F. Hex is far more common in modern computing; octal is mostly seen in legacy Unix file permissions (like chmod 755).
How many bits is a hex digit?
Each hexadecimal digit represents exactly 4 bits (a nibble), since 16 = 2⁴. This makes hex a convenient shorthand for binary - two hex digits represent exactly one byte (8 bits).