Number base converter

Convert a whole number between binary, octal, decimal, hexadecimal and any base from 2 to 36. Very large numbers stay exact.

Your files stay on your device. Nothing is uploaded.

Number base converter

Whole numbers of any size

Step 1: Type a number

It is written in
Show

Step 2: The same number in other bases

How to convert between number bases

  1. Type the number

    Type the number. Prefixes such as 0x, 0b and 0o, spaces and underscores are understood.

  2. Say which base it is in

    Choose decimal, binary, octal, hex, or any other base.

  3. Copy the result

    The number appears in every common base at once.

About this tool

Exact for big numbers

Many converters lose digits beyond about 15 decimal digits. This one uses exact whole-number arithmetic, so a 128-bit hex value converts to every digit of its decimal form.

How bases work

Decimal uses 10 digits; binary uses 0 and 1; hexadecimal uses 0-9 and A-F, so one hex digit is exactly four bits. That is why colours, memory addresses and hashes are written in hex.

Which integer it fits

The tool says how many bits the number needs and whether it fits in an 8, 16, 32, 64 or 128-bit integer, signed or unsigned.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

Can I convert negative numbers?

Yes. The minus sign is kept, for example -255 is -FF in hex. Two's complement form is not shown.

Does it convert fractions?

No, whole numbers only.

Is anything sent to a server?

No. It runs in your browser, so nothing you type or choose is sent anywhere.

How do I convert colours?

Use the Colour converter for HEX, RGB and HSL.