Binary / Hex / Decimal Converter

Convert between binary, hex, decimal & octal.

A free number-base converter that instantly turns a value in any base into binary, octal, decimal and hexadecimal at once. Enter a number, pick its base, and copy any result — grouped for readability, with a bit and byte count. Backed by BigInt so even very large integers convert exactly. Runs fully in your browser.

Binary / Hex / Decimal Converter features

How to use Binary / Hex / Decimal Converter

  1. Enter your number

    Type or paste the value you want to convert into the value box.

  2. Choose its base

    Tell the converter what base your input is in — binary, octal, decimal or hexadecimal.

  3. See every base

    The binary, octal, decimal and hex equivalents appear instantly, with binary grouped into 4-bit nibbles.

  4. Check the size

    Read the bit and byte count to know how much storage the value needs.

  5. Copy what you need

    Use the one-click copy on any result for your code, networking or electronics work.

Frequently asked questions

What do 'quotient' and 'remainder' mean in the steps?

When you divide one whole number by another, the quotient is the whole-number answer and the remainder is what's left over. For example 100 ÷ 2 = 50 remainder 0, because 2 goes into 100 exactly 50 times with nothing left; and 101 ÷ 2 = 50 remainder 1, because 2 × 50 = 100, leaving 1. To convert a number to another base you divide repeatedly: each quotient becomes the next number to divide, and the remainders — read from the last line up to the first — spell out the result.

How does the decimal (base 10) number system work?

Decimal uses ten digits, 0–9, and each position is worth ten times the one to its right (ones, tens, hundreds…). So 255 means 2×100 + 5×10 + 5×1 = 255. It's the everyday system because we have ten fingers.

How does binary (base 2) work, with an example?

Binary uses just two digits, 0 and 1, and each position is a power of two (1, 2, 4, 8, 16…). Computers use it because a switch is either off (0) or on (1). Example: 1111 1111 = 128+64+32+16+8+4+2+1 = 255. To go the other way, 255 ÷ 2 = 127 r 1, 127 ÷ 2 = 63 r 1, and so on — reading the remainders bottom-to-top gives 11111111.

How does hexadecimal (base 16) work, with an example?

Hex uses sixteen digits: 0–9 then A–F, where A=10, B=11, C=12, D=13, E=14 and F=15. Each position is a power of 16. Example: FF = 15×16 + 15×1 = 255, and 2A = 2×16 + 10 = 42. Because two hex digits (00–FF) cover exactly one byte (0–255), hex is the compact way to write bytes, colours like #FF8800 and memory addresses.

How do I convert binary to decimal?

Set the input base to Binary, type your 0s and 1s, and the decimal value appears instantly in the results — along with the octal and hexadecimal forms. Each binary digit is a power of two, and the tool sums them for you. For example 1010 = 1×8 + 0×4 + 1×2 + 0×1 = 10.

How do I convert binary to decimal step by step?

Write the place values above each binary digit, doubling from right to left: 1, 2, 4, 8, 16, 32, 64, 128… Then add up the place values wherever there is a 1. Example — 1101: the place values are 8 4 2 1, the 1s sit under 8, 4 and 1, so 8 + 4 + 1 = 13. The tool's Simple mode shows exactly this grid for any number you type.

How do I convert decimal to binary step by step?

Divide the number by 2 over and over, writing down the remainder (0 or 1) each time, until the number becomes 0. Then read the remainders from the last one up to the first. Example — 13: 13÷2 = 6 r 1, 6÷2 = 3 r 0, 3÷2 = 1 r 1, 1÷2 = 0 r 1; reading bottom-to-top gives 1101. Switch to Advanced mode to watch these division steps for your own number.

Is this converter good for students?

Yes — it's built to teach, not just to answer. Simple mode shows a school-style place-value grid (…8 4 2 1) with the 'on' columns added up to the decimal number, and Advanced mode shows the full repeated-division steps. It's free, needs no sign-up, and works on any phone or computer.

How do I convert decimal to hexadecimal?

Choose Decimal as the input base, enter your number, and read the Hexadecimal result. Hex uses the digits 0–9 and A–F, where A=10 through F=15, which is why it's compact for representing bytes.

Does it handle very large numbers?

Yes. The converter uses JavaScript BigInt, so it's exact for integers of any size — far beyond the range where normal floating-point math would lose precision.

Why is hexadecimal used in computing?

Each hex digit maps to exactly 4 binary bits, so two hex digits represent one byte. That makes hex a short, human-readable way to write binary data like colors (#FF8800), memory addresses and machine code.

Is my input uploaded?

No. All conversion happens locally in your browser — nothing you enter leaves your device.

Related tools — Developer · Utilities