Binary Hex Decimal Converter
Convert between binary, hexadecimal, and decimal number systems
🌈 Browse More Tools
Complete Guide: Binary Hex Decimal Converter
Everything you need to know about using this tool effectively
The Number Base Converter transforms numbers between binary, hexadecimal, and decimal numeral systems. You type a number in any one of the three formats and the tool instantly shows the equivalent in the other two. It validates input to ensure only valid characters are used for each base. All processing happens in the browser.
This tool uses JavaScript's parseInt and toString methods to convert between bases. Binary accepts only 0 and 1. Hexadecimal accepts 0-9 and A-F (case-insensitive). Decimal accepts 0-9. The tool converts any input to the other two formats in real time.
Converting hex color codes to decimal
Convert a hex color value like FF5733 to decimal RGB values for use in code.
Working with memory addresses
Convert a hex memory address to binary for low-level debugging or assembly programming.
Learning number systems
Practice converting between binary, hex, and decimal for a computer science course.
Inspecting binary data
Convert a binary value from a logic circuit diagram to hex for easier reading.
Enter a number
Type a value in any of the three fields: binary, hex, or decimal.
View conversions
The other two fields update instantly with the converted values.
Copy a value
Click the copy button next to the value you need.
Binary uses only 0 and 1. Hex uses 0-9 and A-F.
Each hex digit represents 4 binary bits, so 0xFF is 11111111 in binary.
The tool supports numbers up to JavaScript's maximum safe integer (2^53-1).
Hex values are case-insensitive: 'a' and 'A' are treated the same.
What number bases are supported?
The converter supports binary (base-2), hexadecimal (base-16), and decimal (base-10). These are the three most common bases in programming and computer science.
What is the maximum number I can convert?
The tool supports numbers up to JavaScript's maximum safe integer, which is 9,007,199,254,740,991 in decimal.
Is my input sent to a server?
No. All conversion happens in your browser using JavaScript. Nothing is transmitted.
Can I convert negative numbers?
The tool currently supports positive integers only. Negative numbers and floating-point values require different conversion approaches.
Why do programmers use hexadecimal?
Hex is more compact than binary. Each hex digit represents 4 bits, making it easier to read and write long binary numbers. It is commonly used for memory addresses, color codes, and encoded data.