Base Converter

Convert between binary, hexadecimal, decimal, and octal number systems. Essential for PIC microcontroller programming and debugging.

Enter Value

Enter a number in any base (binary, hex, decimal, or octal)

Converted Values

Binary: -
Octal: -
Decimal: -
Hexadecimal: -
ASCII Character: -
Signed (8-bit): -

Assembly Code Examples:

; Assembly code examples will appear here

Quick Conversions

0xFF 255 (Binary: 11111111)
0x80 128 (Binary: 10000000)
0x55 85 (Binary: 01010101)
0xAA 170 (Binary: 10101010)
0x00 0 (Binary: 00000000)
0x01 1 (Binary: 00000001)

Number System Reference

Binary (Base 2)

Uses digits 0 and 1. Each bit represents a power of 2.

1010₂ = 1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 10₁₀

Hexadecimal (Base 16)

Uses digits 0-9 and A-F. Each digit represents 4 bits.

A5₁₆ = 10×16¹ + 5×16⁰ = 165₁₀

Octal (Base 8)

Uses digits 0-7. Each digit represents 3 bits.

75₈ = 7×8¹ + 5×8⁰ = 61₁₀

Decimal (Base 10)

Standard number system using digits 0-9.

123₁₀ = 1×10² + 2×10¹ + 3×10⁰