Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal. Type in any base and see all four at once, each with its own copy button.
Convert numbers between binary, octal, decimal and hexadecimal. Type in any base and see all four at once, each with its own copy button.
About this tool
This number base converter shows the same whole number in the four bases programmers and students use most: binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Pick the base you are typing in, enter the number, and all four results appear at once as you type, each with a copy button. So decimal 255 shows as 11111111 in binary, 377 in octal and FF in hexadecimal; type FF with Hexadecimal selected and you get 255 back. Hexadecimal letters can be typed in upper or lower case, and results are shown in capitals. A small reminder of how bases work: each position in a number is worth the base times the position to its right. In binary the positions are worth 1, 2, 4, 8, 16 and so on, so 1011 is 8 + 2 + 1 = 11. In hexadecimal the digits run 0–9 then A–F for 10 to 15, and each position is worth 16 times the next, so 2F is 2 × 16 + 15 = 47. One hex digit equals exactly four binary digits, which is why hex is used as a short way to write bytes, colours (#FF8800), memory addresses and file signatures, while octal survives mainly in Unix file permissions such as chmod 755. The converter is built for whole numbers and works in your browser. Some limits are worth knowing. It reads the number from the left until it meets a character that is not valid in the chosen base and ignores the rest, so check your input if a result looks short (typing 129 as binary gives 1). Do not type the 0b or 0o prefix; a leading 0x in hexadecimal is accepted. Fractions are not converted — the part after a decimal point is dropped — and negative numbers are shown with a minus sign rather than in two’s-complement form. Results are exact up to 9,007,199,254,740,991 (2⁵³ − 1); larger numbers lose precision.

Binary, octal, decimal or hexadecimal.
Whole numbers; hex letters in any case.
Results update as you type.
Each result has its own copy button.
Binary, octal, decimal and hex side by side.
Start from hex, binary, octal or decimal.
Every keystroke updates all results.
One button per base.
Paste hex values with or without the 0x prefix.
Precise for numbers up to about nine quadrillion.
From homework to hardware
Check base conversions for exams like GATE or class assignments.
ExampleConfirm that 156 decimal is 10011100 in binary.
Each pair in a hex colour is a 0–255 value.
Example#FF8800 → FF = 255, 88 = 136, 00 = 0 for red, green, blue.
chmod uses octal digits for read, write and execute.
Example755 octal is 111 101 101: rwx for owner, r-x for others.
See which bits a flag value sets.
ExampleDecimal 12 is 1100: bits 2 and 3 are on.
Debuggers and logs show addresses and error codes in hex.
ExampleConvert 0x1F4 to decimal 500 to read a log value.
Subnet masks and MAC addresses are binary and hex underneath.
Example255 decimal = 11111111, one full octet of a mask.
Avoid the common slips
Reading stops at the first invalid digit, so 1021 in binary reads as 10 (2). If a result looks short, check the input base.
Split binary into groups of four from the right; each group is one hex digit. 1010 1111 = AF.
Type binary and octal without the 0b or 0o prefix. The 0x prefix for hex is fine.
Digits after a decimal point are dropped. Convert the whole part only.
Convert the number to decimal, then read it as a date.
Open Unix Timestamp ConverterSenior Software Engineer · Developer of Toolyconvert
Hemant developed Number Base Converter and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 22 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.