10

Base Converter

// BIN • OCT • DEC • HEX • ENDIAN

Convert Integers

Type in any field. Use the toolbar below to simulate hardware architecture.

Word Size
Endianness
 
Decimal Value
Hexadecimal Base 16
0x
Octal Base 8
0o
Binary Base 2
0b

The hex and binary fields show a memory representation, not the number. With Little Endian active they are byte-swapped, so the digits you read are the bytes as they would sit in memory at the selected word size. Endianness and two's complement both need a fixed word size: in Auto mode endianness is ignored and treated as Big Endian, and only positive values are supported. A value larger than the word size is truncated at the high byte rather than rejected, and the banner above says so when it happens. Octal is unaffected by endianness because it shows the abstract value. Confirm byte order and alignment against the datasheet before you trust any of this against real hardware. Provided as-is, without warranty, and used at your own risk. The site-wide notice carries the full terms.