tooldeb Online Tools
Categories
Finance & Investing Interest, savings, returns, and inflation. Loans & Property Mortgages, repayment, DSR/DTI/LTV, and jeonse. Tax & Payroll Take-home pay, severance, insurance, and taxes. Shopping & Pricing Discounts, tips, unit price, and margins. Health & Fitness Body metrics, nutrition, and training. Math Percentages, fractions, algebra, and sequences. Geometry Area, volume, and surface of plane and solid shapes. Statistics & Probability Averages, spread, combinations, and odds. Unit Conversion Length, weight, temperature, pressure, and more. IT & Digital Data size, screens, color, and network speed. Engineering & Electronics Circuits, resistance, PCB, and signals. Date & Time Ages, D-day, date math, and time zones. Home & Interior Paint, tile, wallpaper, flooring, and concrete. Automotive Fuel cost, economy, tires, and vehicle tax. Everyday Bills, delivery, photos, and odds and ends.
EN
한국어 English

Number Base Converter

Convert a decimal (base-10) number into binary, octal, and hexadecimal.

Inputs
Binary
11111111
Octal
377
Hexadecimal
FF
Converting the other direction (binary/octal/hex → decimal) needs free-text input and isn't supported here. This calculator takes whole numbers of 0 or more — anything after the decimal point is dropped before converting. Above the double-precision safe-integer limit (2^53−1 = 9,007,199,254,740,991) the number you typed can no longer be held exactly, so all three outputs show — rather than digits that no longer match the input.

How base conversion works

Each positional numeral system represents a number as a sum of powers of its base (2 for binary, 8 for octal, 16 for hexadecimal). Converting from decimal repeatedly divides by the target base and reads the remainders in reverse.

n = Σ dᵢ × baseⁱ
  • base — 2 (binary), 8 (octal), or 16 (hexadecimal)
  • dᵢ — digit at position i (hex digits A–F represent 10–15)

More detail

Why hexadecimal uses letters

Hexadecimal needs 16 distinct digits, but base-10 only has 10 symbols (0–9), so it borrows A–F for the values 10–15. That's why 255 in decimal becomes FF in hex: F is 15, so FF = 15×16 + 15 = 255.

Quick check. 255 is the maximum value a single byte can hold — it's 11111111 in binary and FF in hex, which is why both show up constantly in colors, IP addresses, and memory sizes.

Frequently asked questions

How do I convert 255 to hexadecimal?

255 ÷ 16 = 15 remainder 15. Both the quotient and remainder are 15, which is F in hex, so 255 = FF. Enter 255 above to confirm — it's the max value a single byte can hold.

How do I convert decimal to binary by hand?

Repeatedly divide by 2 and read the remainders bottom-to-top. For 10: 10÷2=5 r0, 5÷2=2 r1, 2÷2=1 r0, 1÷2=0 r1 → reading remainders upward gives 1010.

Why does hexadecimal use letters A–F?

Hex needs 16 distinct digits per position, but decimal only has 10 symbols (0–9). A–F fill in for 10–15, so a hex digit can represent any value 0–15 with a single character.

What's 1024 in binary and hex?

1024 is 10000000000 in binary (11 digits) and 400 in hex — it's 2¹⁰, which is why it marks the boundary of a kilobyte in computing.

Related calculators

Browse all Digital calculators