Binary/Hex/Decimal Converter
Convert numbers between Binary, Hexadecimal, Decimal, and Octal formats instantly.
Understanding Number Systems
Computers work exclusively with binary — zeros and ones. But binary numbers become very long and hard to read quickly, so programmers and engineers use other number bases as shorthand. Hexadecimal (base 16) is particularly popular because each hex digit exactly represents four binary digits, making it a compact and readable alternative for binary data. Decimal (base 10) is the system humans use in everyday life.
Converting between these systems manually requires math that is error-prone and slow. This converter handles all conversions instantly, letting you focus on understanding the values rather than the arithmetic.
Where Each Number System Is Used
- Binary (Base 2) — Processor instructions, memory addressing, bitwise operations, network masks, and permission flags (like Unix file permissions: 755 = 111 101 101 in binary).
- Hexadecimal (Base 16) — Memory addresses, color codes in CSS (#FF5733), SHA hashes, MAC addresses, and assembly language.
- Decimal (Base 10) — IP addresses (the human-readable version), port numbers, and general numeric values in programming.
- Octal (Base 8) — Unix file permission numbers (chmod 755), older computing systems, and some embedded systems programming.
Quick Reference: Common Conversions
- Decimal 255 = Hex FF = Binary 11111111 (maximum value of one byte)
- Decimal 0 = Hex 00 = Binary 00000000
- Decimal 16 = Hex 10 = Binary 00010000
- Decimal 128 = Hex 80 = Binary 10000000
- CSS color #FFFFFF = RGB(255, 255, 255) = full white
- CSS color #000000 = RGB(0, 0, 0) = full black
Knowledge Base
The Binary/Hex/Decimal Converter instantly converts numbers between Binary, Hexadecimal, Decimal, and Octal number systems. It's essential for programmers, electronics engineers, and computer science students.
- 1Enter a number in any supported format.
- 2The tool automatically converts to all other formats in real-time.
- 3Copy any converted value to your clipboard.
All number conversions happen locally in your browser with instant results. No data is sent to any server, making it completely private and available offline with zero latency.
What number systems are supported?
The tool supports Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16) conversions with real-time updates as you type.
Can I convert large numbers?
Yes. The converter handles large numbers within JavaScript's safe integer range (up to 2^53 - 1). Simply type your number in any supported format and see instant conversions.