← Developer Tools
š¢
Binary Hex Converter
Convert instantly between binary, hexadecimal, decimal, and octal number systems. Includes ASCII text to binary/hex converter and reference chart. Free, runs in browser.
Type in any field to auto-convert all others
Reference — Common Values
| Decimal | Binary | Hex | Octal | Meaning |
|---|
Binary & Hex FAQs
What is binary and why do computers use it?
Binary (base-2) uses only 0 and 1, which correspond to electrical signals being OFF or ON. Computers use binary because transistors — the basic hardware units — naturally represent two states.
How do I convert decimal to hexadecimal?
Divide the decimal number by 16 repeatedly and note the remainders. Convert remainders 10-15 to A-F. Read remainders in reverse. Example: 255 ÷ 16 = 15 remainder 15 → FF (since 15 = F in hex).
What is hex used for in programming?
Hex is widely used in: HTML color codes (#FF5733), memory addresses (0x00FF), byte representation in debugging, IPv6 addresses, and cryptographic hash values like SHA-256.