Developer tools

Number Base Converter

Convert signed whole numbers between binary, octal, decimal, hexadecimal and bases 2–36.

Enter your details

Free tool

How to use this tool

Choose the source and target bases and enter a whole number without a 0x or 0b prefix. Digits above nine use A–Z. The converter validates every digit and uses integer arithmetic within the stated maximum absolute value of 9,007,199,254,740,991. Negative numbers use a leading minus sign, not a fixed-width two’s-complement representation.

A WORKED EXAMPLE

Try these values

FF in base 16 converts to 255 in base 10 and 11111111 in base 2.

Common questions

Can I convert fractional digits?

No. This tool converts whole numbers only.

Does a negative result show two’s complement?

No. It keeps the leading minus sign. A fixed-width bit representation needs a width and a separate convention.

Something doesn’t add up? Report an issue · Methods & corrections