Embedded Calculators & Part Finder
Size a value with 64 free calculators, then find the real component that fits — in stock, at the best price. For MCU, power, RF & firmware. No account.
Number Base Converter
Simultaneous conversion between Decimal, Hexadecimal, Binary, and Octal formats (unsigned 32-bit).
Number Base Conversion is essential for translating hex values, binary flags, and decimal numbers during debugging.
Conversions:
- Hexadecimal: Base 16 (0-9, A-F)
- Decimal: Base 10 (0-9)
- Binary: Base 2 (0-1)
- Octal: Base 8 (0-7)
Usage: Type in any field, and the other fields will instantly convert the value. It also counts the active (set) bits (Hamming weight).
When you need it: Reading hex register dumps, decoding binary flag fields, or converting between decimal, hex, binary and octal while cross-referencing a datasheet and a debugger.
Worked example: 0xB4 = 1011 0100b = 180 dec = 0264 oct. Each hex digit maps to exactly 4 bits (one nibble), so a byte is always two hex digits — handy for reading memory dumps at a glance.
Tips & gotchas:
- Group binary digits in nibbles (
1011 0100) to read them against hex without counting. - Whether a value is "negative" depends on the word width you assume —
0xFFis 255 as unsigned 8-bit but −1 as signed 8-bit (two's complement). - Mind prefixes:
0x= hex,0b= binary, a leading0= octal in C. - Widening a signed value sign-extends (copies the top bit); widening unsigned zero-extends.