Conversion

Hexadecimal to Decimal

Convert a hexadecimal value (with or without the 0x prefix) to decimal, binary and octal.

How it works

Converting hexadecimal to decimal makes it possible to interpret values found in traces, registers and configurations. 0xFF0F = 65295: each digit is multiplied by a power of 16.

In networking, hexadecimal is often encountered in VLANs (4094 = 0xFFE), MAC addresses, EtherType (0x0800 = IPv4, 0x86DD = IPv6) and DSCP.

Examples

EtherType IPv4

2048 in decimal.

value0x0800
Load this example

Normalized MAC

6186539.

value5E4A2B
Load this example

Frequently asked questions

Is the 0x prefix mandatory?

No: the tool accepts both forms. The 0x prefix is the programming convention.

How do you calculate 0xFFFF?

F is 15: 15×4096 + 15×256 + 15×16 + 15 = 65535.