Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly.
Convert numbers between any numeral bases: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), or any custom base from 2 to 36. Essential for programmers, students, and anyone working with computer science concepts.
Features
Use Cases: When This Tool Helps
-
Study for computer science exams
Check binary, octal, and hex conversions while practicing for programming and networking tests.
Read the guide → -
Read memory addresses and error codes
Convert hex values from debuggers, crash logs, and Windows error codes to decimal.
-
Work with colors and CSS
Convert hex color channels like FF or 80 to decimal 255 or 128 and back.
-
Configure networks and subnets
Convert IP octets and subnet masks to binary to understand CIDR ranges.
-
Program microcontrollers
Set register values and bit flags for Arduino and embedded projects in hex or binary.
-
Explore unusual bases
Convert to base 36 for short IDs or base 3 for math puzzles and teaching.
How to Convert Number Bases
- Enter your number in the source base field.
- Select the source base (e.g., Decimal).
- The equivalent values in all other bases appear instantly.
FAQ
Why do programmers use hexadecimal?▾
Hex is compact — one hex digit represents 4 bits, making it easier to read binary data like memory addresses and color codes.
What does 0xFF mean?▾
It's hexadecimal for 255 in decimal, or 11111111 in binary. Commonly used in color codes and bit masks.
Quick Reference
- Decimal 255 = Binary 11111111
- Decimal 255 = Hex FF
- Decimal 255 = Octal 377
- Hex colors use base 16: #FF5733