Hex / Binary / Endianness Tools

Convert between hex, decimal, and binary. Perform byte swaps and endianness conversions for 16/32/64-bit values.

Live

Input

Hexadecimal

0x12345678

Decimal

305419896

Binary (32-bit)

0001 0010 0011 0100 0101 0110 0111 1000

Example input:

0x12345678 → little-endian: 78 56 34 12

Results

Engineering Notes

Hex to Decimal

Hex is base-16 (0-F), decimal is base-10. 0xFF = 255, 0x100 = 256. Use this converter to quickly switch between hex, decimal, and binary representations.

Little-Endian Example

0x12345678 in little-endian is stored as bytes: 78 56 34 12. The least significant byte (0x78) comes first in memory.

Frequently Asked Questions