Number Base Converter (decimal → binary, hex, octal)
Enter a decimal number to convert it to binary (2), octal (8) and hexadecimal (16) instantly. For computer and electronics students.
Quick answer
255 = binary 11111111 = hex FF.
How it is calculated
- Binary: keep dividing by 2 and read the remainders (0/1) from bottom to top.
- Divide by 8 for octal and 16 for hex; in hex, 10–15 are written A–F.
- 255 ÷ 16 = 15 remainder 15 → FF.
Worked example
Decimal 255 = binary 11111111 = hex FF = octal 377.
| Decimal number | 255 |
| Binary | 11111111 |
| Hex | FF |
| Octal | 377 |
Formula
Binary = toBase(Nn,2) Hex = toBase(Nn,16) Octal = toBase(Nn,8)
Good to know
- 4 binary digits = 1 hex digit: 1111 = F.
- Colour codes (#FF8800) are in hex.
Questions people ask
How do I convert decimal to binary?
Divide by 2 repeatedly and write the remainders in reverse order.
What are A to F in hex?
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
Why is 255 written FF?
15 × 16 + 15 = 255.
More calculators
Ohm's law & powerInverter battery backupRooftop solar sizeVoltage drop (copper, 1-phase)Quadratic equationLoan EMIGST add / removeGold jewellery priceLand unit converterPercentagePercent increase / decreaseDiscount / sale priceBill splitTrip fuel costElectricity bill (appliance)Recipe / catering scaleHow much loan for my EMI?Simple interestCompound interest / FDRecurring deposit (RD)SIP returnsCAGRFuture cost (inflation)Desi byaj (rupaye saikda)Trading position sizeIncome tax (new regime)Profit, margin & markupSelling price from marginBreak-evenCash counterCommissionGram ↔ tola, masha, rattiKarat purity & rateSilver valuePlot area (length × width)Irregular plot (4 sides + diagonal)Triangle area (3 sides)Stamp duty & registrationRental yieldHouse construction costConcrete: cement, sand, aggregateBricks for a wallPlaster materialFloor tilesPaint quantitySteel bar (sariya) weightWater tank capacityDilution (C₁V₁ = C₂V₂)MolarityIdeal gas (moles)Speed, distance, timeBMIDaily calories (BMR)Daily water intakeMilk payment (fat + SNF)Urea for nitrogenPesticide spray mixMandi sale profitCGPA to percentageMarks percentageAttendance plannerCricket run rateRequired run rate
This page in: हिंदी · मराठी · English
Updated 13 Nov 2026 · Desktop N Calculator v1.2.0