Number System Converter
HEX ↔ DEC ↔ OCT ↔ BIN and any base 2–36. Instant conversion, step-by-step explanations, bitwise operations, batch processing.
Русская версияConverter
Type a number in any fieldAdditional Tools
Enter 3 or 6 HEX digits in the HEX field above — a color preview and RGB breakdown will appear here.
—Features
Use Cases
Frequently Asked Questions
How to convert decimal to hexadecimal?
Divide the decimal number by 16, note remainders from bottom to top. Remainders 10–15 become letters A–F. Example: 255 ÷ 16 = 15 remainder 15 (F), 15 ÷ 16 = 0 remainder 15 (F). Reading bottom-up: FF. The Step-by-Step tab shows each step in detail.
What is the difference between HEX, OCT, DEC and BIN?
DEC (base 10) — digits 0–9, the familiar everyday number system.
BIN (base 2) — only 0 and 1, the foundation of all digital computers.
OCT (base 8) — digits 0–7, used in Unix/Linux file permissions (chmod 755).
HEX (base 16) — digits 0–9 and A–F, used in CSS colors and memory addresses.
What does 0xFF mean in programming?
0xFF is a hexadecimal number with the 0x prefix. FF = 255 in decimal = 11111111 in binary — the maximum value of one unsigned byte. In CSS, #FF0000 is pure red. In programming, 0xFF is commonly used as a bitmask to extract the last byte.
How do bitwise AND, OR, XOR operations work?
These operations are applied to each bit individually.
AND: output bit is 1 only if both input bits are 1.
OR: output bit is 1 if at least one input is 1.
XOR: output bit is 1 if the inputs differ.
Example: 12 AND 10 = 1100 AND 1010 = 1000 = 8.
Can I convert to non-standard bases (not 2/8/10/16)?
Yes. The converter supports any base from 2 to 36. Base 36 uses digits 0–9 and letters A–Z. Example: 255 in base 36 = 73. Enter the base in the custom field — the converter will show the result instantly.
How to manually convert binary to decimal?
Multiply each bit by 2 raised to the power of its position (rightmost = 0), then sum. Example: 1011₂ = 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 8+0+2+1 = 11. The Step-by-Step tab shows this process for any number.
What is base 36 (hexatrigesimal)?
Base36 uses digits 0–9 and letters A–Z (36 characters). It's used for compact encoding of large numbers in URLs, identifiers, and hashes. For example, 1000000 in base36 = LFLS. Used in URL shorteners and serial number systems.