Free Number Base Converter

Convert between binary, decimal, hexadecimal and octal โ€” type in any field and all others update instantly.

Advertisement

Click any field result to copy to clipboard.

Binary bit breakdown

Quick Reference

DecimalBinaryHexOctal
0000000
81000810
101010A12
151111F17
16100001020
321000002040
64100000040100
1281000000080200
25511111111FF377
Advertisement

Number Bases Explained

Decimal (base 10) is what we use daily โ€” digits 0-9. Binary (base 2) uses only 0 and 1, the language computers operate in. Hexadecimal (base 16) uses 0-9 and A-F โ€” widely used in programming, memory addresses and web colour codes (#FF5733). Octal (base 8) uses digits 0-7, still used in Unix file permissions.

Understanding number bases is essential in computer science, low-level programming, digital electronics and cryptography. A single byte (8 bits) can hold values from 0 (00000000) to 255 (11111111) in binary, or 0x00 to 0xFF in hex.

Frequently Asked Questions

Type the binary number in the Binary field and the decimal result appears immediately. You can also multiply each bit by its positional power of 2 and sum them: 1010 = 1ร—8 + 0ร—4 + 1ร—2 + 0ร—1 = 10.
0xFF = 255 in decimal. F in hex = 15. FF = (15 ร— 16) + 15 = 255.
11111111 in binary = 255 in decimal = FF in hexadecimal = 377 in octal. It is the maximum value of a single byte.
Hex is used because it directly maps to binary (1 hex digit = 4 bits), is more compact, and easier for humans to read than long binary strings. Memory addresses, CSS colours and bytecode are typically written in hex.