What is a Number Base Converter?
> Number Base Converter converts a whole number between binary, octal, decimal, and hexadecimal — and any base from 2 to 36. Enter a value in one base and it shows the rest at once. For example, decimal 255 is 11111111 in binary, 377 in octal, and FF in hex. Works offline. ---
### H2: Convert between binary, octal, decimal, and hexadecimal
Every number can be written in different bases — systems that count using a different number of digits. We use decimal (base 10) every day, computers use binary (base 2), programmers use hexadecimal (base 16) for compactness, and octal (base 8) still appears in places like file permissions. This converter handles all four, plus any base from 2 to 36 in the same picker: type a value, pick the base it is in, and the table underneath shows it in every common base at once.
The idea behind it is place value. In decimal, "255" means 2×100 + 5×10 + 5×1. In binary, each place is a power of two, so 11111111 means 128+64+32+16+8+4+2+1 = 255. In hexadecimal, each place is a power of 16, and the digits run 0–9 then A–F (where A=10, B=11, up to F=15), so FF means 15×16 + 15 = 255. The tool can show this working so you can follow — and check — how a result is reached, rather than trusting a black box.
Hexadecimal is popular in programming because it lines up neatly with binary: one hex digit equals exactly four binary bits, so a byte (8 bits) is always two hex digits. That's why colours, memory addresses, and byte values are usually written in hex — it's far more compact and readable than long binary strings.
A couple of honest notes. The tool converts whole numbers (integers); it validates your input, so it won't let you type a "2" in a binary number or a "G" in hex. And representing negative numbers in binary (two's complement) is a separate topic from plain base conversion — this tool works with non-negative integers by default.
Everything runs on your own device, offline, with nothing uploaded.
---