MyCalCute
Install
Calculators / Math / Binary and hexadecimal converter

Binary and hexadecimal converter calculator

Convert a nonnegative whole decimal number to binary and hexadecimal.

On this page

Your result

Binary11111111
HexadecimalFF

Calculator controls

How to calculate

Convert a nonnegative whole decimal number to binary and hexadecimal.

Repeatedly divide the whole number by 2 or 16 and read the remainders in reverse order.

Worked example

Decimal whole number: 255.

Binary: 11111111 ; Hexadecimal: FF .

Assumptions and limits

The input is limited to JavaScript’s safe integer range so the conversion remains exact.

Results are rounded for display; calculations use unrounded values. Read our calculation methodology.

Understanding the result

Convert a nonnegative whole decimal number to binary and hexadecimal. The displayed figures use the inputs and formula shown on this page.

When this tool is useful

Use the binary and hexadecimal converter to compare a scenario, check an estimate, or verify a manual calculation.

Understanding your inputs

InputWhat to enter
Decimal whole numberEnter a number of at least 0 and no more than 9007199254740991.

Frequently asked questions

What should I check before using the binary and hexadecimal converter result?

The input is limited to JavaScript’s safe integer range so the conversion remains exact.

Is this binary and hexadecimal converter result exact?

It is exact for the stated mathematical model and entered values. Real-world results can differ when rates, timing, fees, definitions or measurement conditions differ.