Base Converter - Hex Decimal Octal Binary
Convert between HEX, DEC, OCT, BIN instantly. Bit width selection, developer-friendly prefixes.
Base Converter Features
Multi-Base
HEX, DEC, OCT, BIN all at once.
Bit Width Selection
8/16/32/64-bit formatting.
Developer Prefixes
0x, 0o, 0b code-ready output.
Real-time Conversion
Instant updates as you type.
Copy Values
One-click copy for each base.
Client-Side Privacy
All processing in your browser.
Common Use Cases
Low-level Programming
Convert memory addresses and bitmasks.
Network Configuration
Convert IP addresses and subnet masks.
Color Codes
Convert RGB decimal to hex color codes.
Memory Addresses
Work with hex memory addresses.
Base Converter FAQ
How do I convert hex to decimal?
Enter a hex value (e.g., FF) in the HEX field. The decimal value (255) appears instantly in the DEC field.
What does bit width do?
Bit width controls the maximum value and padding. 8-bit: 0-255, 16-bit: 0-65535, 32-bit: 0-4294967295, 64-bit: full range. Binary output is padded to the selected width.
What are the prefix formats for?
0x for hex, 0o for octal, 0b for binary. These are standard prefixes in JavaScript, Python, C, and other languages — ready to copy into your code.
Can I enter negative numbers?
The converter handles positive integers. For signed representation, use the bit width to see the two's complement interpretation.