How to use this Base Converter
This calculator converts numbers between Binary (base 2), Decimal (base 10),
Hexadecimal (base 16), and Octal (base 8).
1) Type a number in any input
- Type in Binary, Decimal, Hex, or Octal. As soon as the input is valid, the other bases update automatically.
- You can include prefixes like
0b (binary), 0o (octal), and 0x (hex). Negative numbers (e.g., -42) are also accepted.
2) Use the formatting options
- Group binary (4-bit): adds nibble spacing to binary outputs (example:
1010 1100).
- Show prefix: displays prefixes (
0b, 0o, 0x) on non-decimal outputs.
- Uppercase hex: formats hex digits as uppercase (A–F).
- Bit boxes width: sets how many bits are shown in the binary “bit boxes” visualization (it may expand for large values).
3) Copy the output you need
Each row has a Copy button. It copies the currently formatted value (including any selected grouping, prefixes, and hex casing).
4) Show the place-value explanation (optional)
- Enable Show steps.
- Press Calculate to reveal the place-value expansion for the active input (the field you edited most recently).
- If you change which field you edit and press Calculate again, the steps update for that base.