Embedded Number Converter
Convert numbers between hex, decimal, binary, and octal.
0
0x
0b
0o
Binary layout (MSB → LSB)
0
0
0
0
0
0
0
0
7
6
5
4
3
2
1
0
Decimal
0
Hex
0x00
Octal
0o000
Byte count
1 bytes
Byte breakdown (big-endian, MSB first)
Byte 0
0x00
0
8-bit unsigned range: 0 … 255
Number base conversion for embedded developers
Convert between hex, decimal, binary, and octal with configurable bit widths. The visual bit layout and byte breakdown help debug register values and protocol packets.
Frequently asked questions
- Why do embedded programmers use hex?
- Hexadecimal maps cleanly to binary: each hex digit represents exactly 4 bits (a nibble). This makes it easy to read bit patterns in registers, memory addresses, and protocol data.
- What is two's complement?
- Two's complement is the standard way to represent signed integers in binary. To negate a number: invert all bits and add 1. For an 8-bit signed integer, range is -128 to 127.
- What does 0xFF mean in 8-bit signed vs unsigned?
- In 8-bit unsigned, 0xFF = 255. In 8-bit signed (two's complement), 0xFF = -1. This converter shows both interpretations when you toggle the signed/unsigned mode.
Related tools
- Resistor Color Code Calculator
Decode resistor color bands. Supports 4-band and 5-band.
- Ohm's Law Calculator
Calculate voltage, current, resistance, or power using Ohm's Law.
- Voltage Divider Calculator
Calculate output voltage for a resistor voltage divider.
- 555 Timer Calculator
Calculate frequency, duty cycle, and timing for 555 timer circuits.
- CRC Calculator
Calculate CRC checksums — CRC-8, CRC-16, CRC-32, and custom polynomials.