Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly. Free online number base converter with copy support.
Quick Examples
Frequently Asked Questions
How do I convert binary to decimal?▾
Enter the binary number (e.g. 11111111) in the input field, select Binary (Base 2) as the source base, and click Convert. The decimal equivalent (255) will appear in the results alongside octal and hexadecimal.
What is hexadecimal used for in programming?▾
Hexadecimal (base 16) is used in programming for memory addresses, color codes (#FF5733), byte representation, bitmasks, and debugging. It is more compact than binary (1 hex digit = 4 binary bits) and easier to read than raw binary.
How do I convert decimal to binary?▾
Enter the decimal number, select Decimal (Base 10) as the source base, and click Convert. The binary representation will be shown. For example, 255 in decimal is 11111111 in binary.
What is the difference between binary, octal, decimal, and hexadecimal?▾
Binary (base 2) uses digits 0-1, octal (base 8) uses 0-7, decimal (base 10) uses 0-9, and hexadecimal (base 16) uses 0-9 and A-F. All represent the same numbers in different bases. 255 decimal = 11111111 binary = 377 octal = FF hexadecimal.