Base Converter
Decimal into binary, octal and hexadecimal at once.
Convert Base. Decimal into binary, octal and hexadecimal at once. Says where the rule comes from.
Binary
11111111
8 bits
Every base writes the same quantity differently — 255 is 11111111 in binary and FF in hex, and none is more correct than the others. Hexadecimal earns its place in computing because one hex digit is exactly four binary digits, so conversion between them needs no arithmetic at all.
How the Base Converter works
One number shown in every common base at once. None of them is more correct than the others — they are the same quantity written differently, and the choice is only ever about which is easiest to read for the task in hand.
Also known as: number base converter · convert number base · radix converter · decimal to binary octal hex
Frequently asked questions
What is a number base?
How many digits the system uses before it carries. Decimal has ten, binary two, octal eight, hexadecimal sixteen.
How do I convert between bases?
Through decimal, or directly when the bases are related. Binary to hex needs no arithmetic at all, since four binary digits make one hex digit.
How many bits does my number need?
The length of its binary form. This page shows it, which is what determines whether a value fits in a byte, a short or an int.
Why do computers use binary?
Because a circuit is reliably either on or off, and two states are far easier to distinguish than ten. Everything else is built on that.
Put this calculator on your own site
Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.
<iframe src="https://www.thecalclibrary.com/embed/base-converter-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Base Converter"></iframe>The only condition is that the credit line stays visible. It sits inside the frame, so you do not have to do anything to keep it.