How to Convert Decimal to Binary, Hex and Octal
Going from decimal to binary by hand means dividing by two over and over and tracking remainders, and hex and octal each have their own quirks. It works, but it is slow and easy to fumble. When you just need the right answer, a converter is faster and removes the arithmetic mistakes.
Tooldrop's Number Base Converter does exactly this. You type one number, tell it which base that number is written in, and it shows the same value in binary, octal, decimal and hexadecimal at the same time. It is free, needs no sign-up, has no usage limits, and runs right in your browser so nothing you type is uploaded anywhere. This guide walks through the tool and explains what is happening underneath.
Step by step
- 1Open the Number Base Converter at /dev/number-base-converter. Nothing to install and no account to create.
- 2In the Value field, type the number you want to convert, for example 255. The field ignores case, so for hex you can type either ff or FF.
- 3Open the Input base dropdown and choose the base your number is written in: Binary (base 2), Octal (base 8), Decimal (base 10) or Hexadecimal (base 16). It defaults to Decimal, so to convert a decimal number you can leave it as is.
- 4Read the Result panel. It updates as you type and shows your value in all four bases at once: Binary, Octal, Decimal and Hexadecimal. There is no Convert button to press.
- 5Click the Copy button next to any row to copy that result to your clipboard. Hex output is shown in uppercase.
- 6To convert another value, edit the Value field or switch the Input base. If you enter a digit that is not valid for the chosen base, the tool shows a friendly error instead of a wrong answer.
How decimal to binary actually works
Computers store everything in binary (base 2), so any decimal number eventually becomes a string of 1s and 0s. The classic by-hand method is repeated division: divide your decimal number by 2, write down the remainder (0 or 1), then divide the quotient by 2 again, and keep going until you reach 0. Read the remainders from bottom to top and you have the binary value. For example, 255 becomes 11111111, and 10 becomes 1010.
The Number Base Converter does this for you instantly. Pick Decimal as the input base, type your number, and the Binary row shows the result. Because the tool also displays octal and hexadecimal, you can see how the same value looks across bases without running three separate conversions.
Decimal to hex and octal in the same view
Hexadecimal (base 16) uses the digits 0-9 plus A-F, where A is 10 and F is 15. It is compact, which is why colors, memory addresses and byte values are usually written in hex. Octal (base 8) uses digits 0-7 and still shows up in things like Unix file permissions.
With Tooldrop you do not choose an output base at all. Enter your number once and every base is shown together, so 255 in decimal lines up as 11111111 in binary, 377 in octal and FF in hex side by side. That makes it easy to copy whichever representation you need, or to sanity-check a value you already have.
Why it runs in your browser
The conversion happens entirely on your device. When you type a value, your browser parses it and computes the other bases locally, so the number never leaves your machine and nothing is uploaded to a server. That is good for privacy and it also means the tool responds instantly, even offline once the page has loaded.
Like the rest of Tooldrop, the Number Base Converter is free to use with no sign-up and no limits on how many conversions you run. It handles whole numbers (integers) across binary, octal, decimal and hexadecimal.
Frequently asked questions
How do I convert decimal to binary with Tooldrop?
Can I convert from hex or binary too, not just decimal?
Are my numbers uploaded anywhere?
What happens if I enter an invalid number?
Tools used in this guide
Related guides
Paste any JSON Web Token to read its header and payload in seconds — free, private, and entirely in your browser.
Paste messy JSON, beautify or minify it, and catch errors instantly with this free in-browser JSON formatter.
Paste a JSON array of objects and get clean, spreadsheet-ready CSV in seconds — free, private, and entirely in your browser.