Number Base Converter
DEC · BIN · HEX · ASCII

This converter is free and ad-free. If it helped you, you can support its operation by shopping on Alza through our link — it costs you nothing extra and helps us.
🛒 Support by shopping on Alza
Bit pattern (two's complement):

How to use the converter

Enter a number in any field and the rest recalculate automatically.

Unsigned — non-negative value (0 to 2ⁿ−1).
Signed — negative interpretation in two's complement (−2ⁿ⁻¹ to 2ⁿ⁻¹−1). The bit pattern (BIN, HEX) stays the same.

  • Hexadecimal: every second character (from the end) is highlighted
  • Binary: every group of four digits (from the end) is highlighted
  • Signed: MSB highlighted as the sign bit

The "Character" field shows the Unicode/ASCII character for the decimal value. Pure ASCII is range 0–127, values 128–255 map to Latin-1 (ISO 8859-1). For bit widths over 8 bits, the character from the lowest 8 bits is shown.

Usage examples

Click a row to load it into the converter:

DEC (u)DEC (s)HEXBINNote
255−1FF11111111Maska 0xFF / −1 signed
128−1288010000000INT8_MIN
1271277F01111111INT8_MAX
65654101000001ASCII 'A'
13130D00001101CR \r
10100A00001010LF \n
4095−1FFF11111111111112-bit ADC (ESP32)
🏷️ Prefix notation & C types
Allowed range for 8 bits (unsigned): 0 to 255
Enter a value in the field above.
⚙️ Bitwise calculator
A
AND
=

Input format: 255 (dec) · 0xFF (hex) · 11111111 or 0b... (bin). A string of only 0s and 1s is treated as binary — for decimal use the 0d prefix (e.g. 0d11).
The result format follows operand A — if you enter A as hex, the result is hex. The other bases (dec · hex · bin) are always shown below the result.

🎯 Bitmask helper
07
06
05
04
03
02
01
00
DEC
0
HEX
0x00
BIN
0b00000000
Bits
C / Arduino kód
uint8_t mask = 0x00; // no bits are set
Python kód
mask = 0x00 # no bits are set
Built by chiptron.cz
To bookmark, press Ctrl + D