🔢 Number Base Converters
Convert numbers between binary, decimal, hexadecimal and octal bases instantly.
Number base conversion is fundamental in computer science, digital electronics, and programming. Computers represent all data internally in binary (base 2) — sequences of 0s and 1s — because electronic circuits have two reliable states: on and off. Decimal (base 10) is the number system humans use for everyday counting. Hexadecimal (base 16) and octal (base 8) are shorthand notations used in computing because they map cleanly onto binary patterns.
All conversions on this page use standard positional notation arithmetic performed directly in your browser. In positional notation, the value of each digit depends on its position: in binary 1101, reading from right to left, the positions represent powers of 2 (1, 2, 4, 8), so 1101 = 8 + 4 + 0 + 1 = 13 in decimal. Hexadecimal uses digits 0–9 and A–F (where A=10, B=11, through F=15), allowing a single digit to represent values from 0 to 15.
These tools are used by computer science students learning number systems, programmers who need to convert memory addresses or color codes, electronics engineers working with binary data registers, and developers debugging bitwise operations. Hexadecimal is especially prevalent in web development (HTML color codes like #FF5733 are hex values) and in low-level programming where memory addresses and bit flags are commonly written in hex.
A practical guide to when to use each base: use binary when working with bit flags, permissions, or hardware registers; use hexadecimal when working with color codes, memory addresses, hash values, or any data that needs to be compact while still being readable to humans; use octal when working with Unix file permissions (e.g., chmod 755); use decimal for everything else.
- →Converting binary to decimal when studying computer science or reviewing binary data
- →Converting decimal to hexadecimal for HTML color codes or memory addresses
- →Converting hexadecimal to binary to understand individual bit patterns
- →Converting octal values when working with Unix/Linux file permissions
- →Understanding how the same number looks in different bases during algorithm study
Binary to Decimal
Convert binary (base 2) numbers to decimal (base 10) instantly online.
Decimal to Binary
Convert decimal (base 10) numbers to binary (base 2) instantly online.
Hexadecimal to Decimal
Convert hexadecimal (base 16) numbers to decimal (base 10) instantly online.
Decimal to Hexadecimal
Convert decimal (base 10) numbers to hexadecimal (base 16) instantly online.
Octal to Decimal
Convert octal (base 8) numbers to decimal (base 10) instantly online.
Decimal to Octal
Convert decimal (base 10) numbers to octal (base 8) instantly online.