Skip to content

65535 in Hexadecimal

Decimal 65535 equals 0xFFFF in hexadecimal.

Why this number matters: 65535 is the maximum unsigned 16-bit value (0xFFFF) and the highest TCP/UDP port number.

65535 in all number bases

Decimal65535
Hexadecimal0xFFFF
Binary1111 1111 1111 1111
Octal177777

Try another value

Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.

Input base:
Decimal65535
Hex0xFFFF
Binary0b1111111111111111
Octal0o177777

How 65535 converts from decimal to hexadecimal

Divide by 16 repeatedly and keep each remainder, then read the remainders from bottom to top:

65535÷ 16 =4095remainder15 → F
4095÷ 16 =255remainder15 → F
255÷ 16 =15remainder15 → F
15÷ 16 =0remainder15 → F

Result (remainders bottom to top): FFFF

This tool runs entirely in your browser - nothing you enter is uploaded or stored.

Want to learn the method behind this tool? Read How to Convert Decimal to Hexadecimal - the full step-by-step guide.