Home / 🧬 Common Converters/ Numbers Converter

Numbers Converter

Print page
Convert numeral bases instantly (Decimal, Binary, Octal, Hexadecimal, and Roman Numerals).
Decimal (Base 10)
255
Binary (Base 2)
11111111
Octal (Base 8)
377
Hexadecimal (Base 16)
FF
Roman Numerals
CCLV
Copied to Clipboard!

A positional numeral system (radix system) represents numbers using a base b where a digit string dn dn-1 ... d1 d0 evaluates mathematically to ∑ (di × bi). In computer science, digital logic design, cryptography, and network engineering, numbers are represented across four fundamental bases: Binary (Base-2) (machine instructions composed of 0 and 1), Octal (Base-8) (UNIX file permissions grouping 3 bits), Decimal (Base-10) (standard human counting base), and Hexadecimal (Base-16) (memory addresses and RGB color codes grouping 4 bits using digits 0–9 and A–F).

Our free online Numbers Converter provides instant, high-precision conversions across all positional number bases from Base-2 to Base-36:

  • Binary to Decimal (Base-2 to Base-10): Multiply each binary bit by 2i (e.g., 11012 = 1×8 + 1×4 + 0×2 + 1×1 = 1310).
  • Decimal to Binary (Base-10 to Base-2): Successive division by 2 keeping remainders bottom-up (e.g., 2510 = 110012).
  • Decimal to Hexadecimal (Base-10 to Base-16): Divide by 16 keeping remainders (e.g., 25510 = FF16).
  • Hexadecimal to Binary (Base-16 to Base-2): Direct 4-bit nibble substitution (e.g., FA16 = 1111 10102).
  • Octal to Binary (Base-8 to Base-2): Direct 3-bit group substitution (e.g., 7558 = 111 101 1012).
  • Base-32 & Base-36 Conversion: Alphanumeric bases combining digits 0–9 and letters A–Z for compact hash strings and serial keys.

Master Positional Numeral System Conversion Table

The table below displays sample numerical equivalencies, radix bases, digit sets, and primary computer science applications from Base-2 to Base-36:

Numeral System Name Radix Base (b) Valid Digit Set Sample Value (Decimal 255) Domain & Computing Application
Binary Base-2 {0, 1} 111111112 Machine Language, Transistor Logic & CPU Registers
Ternary Base-3 {0, 1, 2} 1001103 Balanced Ternary Computing & Quantum Logic
Quaternary Base-4 {0, 1, 2, 3} 33334 DNA Genetic Sequence Data Encoding (A, C, G, T)
Octal Base-8 {0, 1, 2, 3, 4, 5, 6, 7} 3778 UNIX File System Permissions (e.g., chmod 755)
Decimal Base-10 {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} 25510 Standard Human Arithmetic & Financial Accounting
Duodecimal Base-12 {0–9, A, B} (A=10, B=11) 19312 Traditional Dozen / Gross Measurement Systems
Hexadecimal Base-16 {0–9, A–F} (A=10 … F=15) FF16 (0xFF) RAM Memory Addresses, HTML Color Codes (#FF5733)
Vigesimal Base-20 {0–9, A–J} (J=19) CF20 Ancient Mayan & Celtic Numeral Systems
Base-32 Base-32 {A–Z, 2–7} (RFC 4648) 7732 Case-Insensitive Cryptographic Tokens & 2FA Keys
Base-36 Base-36 {0–9, A–Z} 7336 Compact URL Shortening & Serial Key Generation

Step-by-Step Conversion Calculation Example

To convert the Hexadecimal memory value 1A3 (0x1A3) into Decimal (Base-10) and Binary (Base-2):

Step 1 (Hex to Decimal): 1 × 162 + 10 × 161 + 3 × 160 = 256 + 160 + 3 = 41910

Step 2 (Hex to Binary Nibbles): 1 = 0001, A = 1010, 3 = 0011 → 0001 1010 00112

Thus, 0x1A3 equals 419 in Decimal (or 110100011 in Binary / 643 in Octal).


Real-World Computer Science & Data Benchmarks

Below is a comparative reference chart showing number representation across 8-bit bytes, 16-bit words, RGB web colors, and IPv4 addresses:

Data Structure / Computing Entity Decimal Value (Base-10) Binary Equivalent (Base-2) Hexadecimal Equivalent (Base-16)
8-Bit Unsigned Byte Maximum Value 255 1111 1111 0xFF
16-Bit Unsigned Word Maximum Value 65,535 1111 1111 1111 1111 0xFFFF
24-Bit RGB Web Color Orange (RGB 255, 87, 51) 16,734,003 11111111 01010111 00110011 #FF5733
32-Bit Unsigned Integer / IPv4 Maximum Address 4,294,967,295 32 × '1' bits 0xFFFFFFFF

History & Standards: 5th-Century Hindu-Arabic Zero vs. 1679 Leibniz Binary vs. Von Neumann Architecture

5th-Century Hindu-Arabic System & Invention of Zero

The positional base-10 system used worldwide today was developed by Indian mathematicians around the 5th century AD. Scholars such as Aryabhata and Brahmagupta formalized positional place values and introduced Zero (0) as both a placeholder and a mathematical number. Persian mathematician Al-Khwarizmi later transmitted the system to the Western world in his 9th-century treatises, creating modern arithmetic.

1679 Gottfried Wilhelm Leibniz & Formalization of Binary

In 1679, German polymath Gottfried Wilhelm Leibniz authored Explication de l’Arithmétique Binaire, formally documenting modern binary arithmetic using only 0 and 1. Leibniz realized that binary logic could simplify complex physical calculations. In 1937, MIT mathematician Claude Shannon proved in his master’s thesis that electrical relays and switches could directly implement Leibniz’s binary Boolean algebra, birthing digital circuit design.

John von Neumann & Computer Memory Architecture (1945)

In 1945, mathematician John von Neumann published the First Draft of a Report on the EDVAC, establishing the stored-program computer architecture. Von Neumann selected binary code over decimal hardware because two-state electrical switches (on/off, high/low voltage) offered vast immunity to electrical noise compared to ten-state decimal electronics.


Popular direct conversions:


Frequently Asked Questions (FAQ)

How do you convert Binary to Decimal manually?

To convert binary to decimal, multiply each binary digit from right to left by increasing powers of 2 (20, 21, 22, 23…) and sum the results. For example, 10112 = 1×8 + 0×4 + 1×2 + 1×1 = 1110.

What is Hexadecimal (Base-16) used for?

Hexadecimal (Base-16) is used in computer programming to represent binary data concisely. Because 1 hex digit represents exactly 4 binary bits (a nibble), 2 hex digits represent a full 8-bit byte (0x00 to 0xFF), making memory addresses, machine code, and RGB color codes easy for humans to read.

Why do computers use Binary (Base-2)?

Computers use Binary (Base-2) because digital electronic circuits are built from transistors that act as simple electrical switches with two reliable states: ON (high voltage / 1) and OFF (low voltage / 0).

What is Base-36 used for?

Base-36 uses digits 0–9 and letters A–Z (36 total characters). It is widely used in software development for compact case-insensitive URL shortening, database primary key encoding, and generating unique alphanumeric serial numbers.