Skip to main content

Free Number Base Converter – Binary, Decimal, Hex & Octal

Number Base Converter changes numbers between binary, decimal, hexadecimal, and octal instantly online for free. Convert number bases in your browser.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

Binary · Octal · Dec · HexValidates InputReal-timeCopy ResultsFree

Converted Values

Binary (2)
11111111
Octal (8)
377
Decimal (10)
255
Hexadecimal (16)
FF

100% Private

All conversion runs locally in your browser. Nothing is uploaded.

How to Use Number Base Converter

1

Choose a Base

Decide which base your number is written in: binary, octal, decimal, or hexadecimal. Type into that field, keeping to the digits valid for it, such as only 0 and 1 for binary or 0 to 9 and A to F for hex.

2

Type Your Number

Enter the value and every other base updates instantly, with the input validated as you type. If a digit is invalid for the base, the tool flags it rather than showing a misleading result.

3

Copy the Result

Copy the converted number in the base you need for your code, colour value, or file permission. Keep track of which base a value is in, since a hex code like FF means 255, not the digits you see.

What a Number Base Converter Does and How It Works

A number base converter rewrites a whole number in a different counting system, moving between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Type a value into any base and the other three update together. Programmers and computer-science students rely on it because each base serves a different job: decimal is how humans count, binary is how machines store everything, hexadecimal is a compact shorthand for binary since one hex digit stands for exactly four bits, and octal still shows up in Unix file permissions. Converting between them by hand means repeated division and remainder tracking, which is slow and easy to fumble, so an instant, validated converter saves real time while debugging or learning. The method works through a common value. To read a number out of any base, each digit is multiplied by that base raised to the digit's position, counting from zero on the right, and the results are summed to give the decimal value. To write that value into another base, you repeatedly divide by the target base and collect the remainders from last to first. Hexadecimal uses the digits 0 to 9 then the letters A to F for the values 10 to 15, while binary uses only 0 and 1 and octal only 0 to 7. A good converter validates each field against its base, so it will not accept a 2 in the binary field or a G in the hex field, flagging the mistake instead of guessing. Here is a concrete example. Take the decimal number 255. To binary: dividing repeatedly by 2 leaves eight 1s, so 255 is 11111111. To hexadecimal: 255 is 15 × 16 + 15, and since 15 is F, that is FF. To octal: 255 is 3 × 64 + 7 × 8 + 7, giving 377. Reading it back the other way, the hex value FF means F (15) times 16 plus F (15), which returns 255. Enter 255 in the decimal field and the tool shows 11111111 in binary, FF in hex, and 377 in octal at once, so you can grab whichever form you need. The practical uses are specific. A web developer decodes a colour like FF00FF from hex into its channel values, or reads a byte value while inspecting data. A systems admin sets a file's Unix permissions using octal, where 755 means read-write-execute for the owner and read-execute for others. A student checks their own base-conversion homework against the tool. Someone debugging low-level code reads a register or memory address written in hex and converts it to decimal to reason about it. An electronics hobbyist sets a chip register to binary 10110010 and needs the B2 hex form the datasheet lists, which is 178 in decimal. Network engineers reading a subnet mask as 11111111 per octet, and anyone tracing a bit flag through a status byte, do the same translation. Because all four bases show together, cross-checking is immediate. A couple of cautions help. The most common error is entering a digit that is invalid for a base, such as a 9 in octal or a 2 in binary; the validation catches this, but it is worth understanding why the input is rejected. Remember these conversions are for whole numbers, so fractional binary or hex is a separate topic the tool does not cover. It is also easy to misread a hex value as decimal, since FF looks like letters but means 255, so keep track of which base a value is written in. Leading zeros trip people up as well, because 0755 in some languages is read as octal rather than the decimal seven hundred and fifty-five, which quietly changes a permission or a constant. Everything runs locally in your browser, so it is instant, works offline once loaded, and never uploads or stores anything you enter.

Number Base Converter Formula & Method

Read a base-b number: sum of (digit × b^position), position counting from 0 on the right. Write into base b: divide repeatedly by b, collect remainders bottom-to-top. Hex digits: 0–9 then A–F (10–15). Binary: 0–1. Octal: 0–7. Example: 255 = 11111111 (bin) = FF (hex) = 377 (oct)

Examples: Number Base Converter

Input

255 (decimal) to hex and binary

Result

FF and 11111111

255 = 15×16 + 15 → FF; eight 1s in binary.

Input

377 (octal) to decimal

Result

255

3×64 + 7×8 + 7 = 192 + 56 + 7 = 255.

Frequently Asked Questions – Number Base Converter

Type a decimal number into the decimal field of the Helperzy Number Base Converter and the binary equivalent appears instantly, along with the octal and hexadecimal forms. For example, 10 in decimal is 1010 in binary.