Tools

Numeric base converter

Live

Convert integers between decimal, binary, octal, hexadecimal, base 32, base 64, and custom bases with live bitwise and Unicode views

Custom base: 36Active width: 8 Signed mode off

Settings

Display controls

Tune prefixes, word size, grouping, and the custom radix before operating on bits.

Main conversion

One editable field per base

Type in any representation and all the others refresh immediately.

Current decimal value255

Base 10, the everyday numeral system.

255

Base 2 for internal computer representation.

0b

0b11111111

Base 8, common in Unix permissions and legacy systems.

0o

0o377

Base 16, compact and readable for memory, hashes, and colors.

0x

0xff

Uses the ABC...234567 alphabet as a positional numeral system.

H7

Uses the ABC...abc...0123...+/ alphabet as a positional numeral system.

D/

Uses digits 0-9 and letters A-Z up to the configured base.

Base 36

73

Bit representation

Grouped binary view

Showing 8 bits with visual grouping every 4 bits.

1111F
1111F
Grouped binary1111 1111
Hex nibblesF F

Bitwise

Bit-level operations

Apply NOT, shifts, and AND/OR/XOR the way you would see them in a computer architecture textbook.

NOT inversion

  1111 1111
~
-----------
  0000 0000

Decimal: 0 · Hex: 0

Left shift

  1111 1111
<< 1
-----------
  1111 1110

Decimal: 254 · Hex: FE

Logical right shift

  1111 1111
>>> 1
-----------
  0111 1111

Decimal: 127 · Hex: 7F

Aligned result

  1111 1111
& 0011 1100
-----------
  0011 1100

Decimal: 60 · Hex: 3C

ASCII and Unicode

Characters and encodings

Convert the current value into a character, a code point, UTF-8 bytes, and UTF-16 code units.

ASCII character Outside ASCII
Unicode code pointU+00FF
UTF-8 in hexadecimalC3 BF
UTF-1600FF

About this tool

Positional numeral systems represent quantities using a finite set of symbols and a base. In base bb, the number dndn−1⋯d1d0d_n d_{n-1} \cdots d_1 d_0 has value ∑i=0ndi⋅bi\sum_{i=0}^{n} d_i \cdot b^i. The decimal system uses b=10b=10, binary b=2b=2, octal b=8b=8, and hexadecimal b=16b=16 with additional symbols A-F for digits 10-15.

Computers work internally in binary because transistors have two states (0 and 1). Hexadecimal emerged as a compact representation of binary: each hexadecimal digit corresponds exactly to 4 bits (a nibble), making conversion trivial. For example, 0xFF=1111 11112=25510\text{0xFF} = 1111\,1111_2 = 255_{10}. Hexadecimal is ubiquitous in programming: CSS colors (#FF5733), memory addresses, error codes, and digital certificates.

This tool converts numbers between bases 2, 8, 10, and 16 instantly. Enter the number in any base and get the equivalent representation in all others, with the conversion process shown step by step.