Sign up free

Number Base Converter

Enter a number in one base and see it in binary, octal, decimal, hex and any base up to 36.

About Number Base Converter

A number base converter saves you from working it out by hand when a value turns up in the wrong base: a hex color or error code, a binary flag field, file permissions such as 755 in octal, or an ID written in base 36. Enter a number in the base you have and see it in binary, octal, decimal and hexadecimal at once, plus any base you choose from 2 to 36.

There's no size limit on whole numbers. They're handled as big integers, so a 32-digit hex hash or a long database ID converts exactly, where a spreadsheet would round it after 15 digits. Negative numbers can be shown in two's complement at 8, 16, 32 or 64 bits, the way a CPU stores them, so -1 at 8 bits is 11111111, or FF in hex. It all runs in your browser.

How to use Number Base Converter

  1. 1
    Enter a number

    Type it in the base you have, such as hex FF or binary 1010.

  2. 2
    Read every base

    Binary, octal, decimal and hexadecimal appear together.

  3. 3
    Add a custom base

    Pick any base from 2 to 36 for an extra result.

  4. 4
    Read negatives as two's complement

    A negative number is shown at every width it fits (8, 16, 32 or 64 bits).

Why use Cubfile for this

  • All the common bases

    Binary, octal, decimal and hex at once, plus any base from 2 to 36.

  • No size limit

    Big integers are converted exactly, with no rounding.

  • Two's complement

    Negative numbers at 8, 16, 32 or 64 bits, as stored in memory.

  • Works offline

    Runs in your browser and needs no connection once the page is open.

FAQ

Number Base Converter: questions and answers

How do I convert hex to decimal?
Enter the hex value, such as FF, and the decimal result, 255, appears along with binary and octal. It works the same in every direction. Hex that encodes text rather than a number is read by the Text to Hex Converter.
What is base 36?
A base that uses the digits 0–9 and the letters A–Z, 36 symbols in all, which makes numbers short. It's the highest base the converter supports. Base32 and Base58 as used for keys and addresses are handled by the Base32 and Base58 Encoder.
How are negative numbers shown in binary?
As two's complement, which inverts the bits of the positive number and adds one. At 8 bits, -1 is 11111111 and -128 is 10000000. Every width that fits is listed, so read the one that matches your data type.
Why does a spreadsheet give a different result for big numbers?
Excel keeps only 15 significant digits and replaces the rest with zeros. This converter uses exact big-integer arithmetic, so long values stay correct.
Is the number base converter free?
Yes, with no sign-up and no limit. It runs in your browser and keeps working offline once loaded.
Share Number Base Converter with a friendIt runs in any browser, and they can try it without signing up.

Related tools

HASH Hash GeneratorGet MD5, SHA-1, SHA-256, SHA-512 and SM3 hashes of text in one go.
TIME Unix Timestamp ConverterConvert Unix timestamps to dates and back, in your time zone and UTC.
U+UNI Unicode ConverterConvert text to and from \u escapes, &#; codes, U+ points and UTF-8 bytes.
AES AES Encrypt and DecryptEncrypt or decrypt text with AES in GCM, CBC or CTR mode.
&;HTML HTML Entity Encoder/DecoderEscape text into HTML entities, or turn entities back into text.
JWT JWT DecoderDecode a JSON Web Token’s header and payload and check its expiry and signature.
BASE Base32 and Base58 EncoderEncode and decode Base32, Base58, Base85 and Base16.
0xHEX Text to Hex ConverterTurn text into hexadecimal bytes in UTF-8, GBK or UTF-16, and back.