UTILITIES NEWBIE

Digital tools

Number-base converter

Exact integer conversion from binary to base 36.

Input

Example: FF

Example: 16

Example: 10

Loading calculation engine…

Output

YOUR RESULT—

Exact signed 64-bit integer.

Read hexadecimal place values. Full explanation follows.
Decimal sum: 240 + 15 = 255. Text explanation

The two hexadecimal F digits have different place weights: fifteen times sixteen and fifteen times one. Their sum is two hundred fifty-five in decimal.

Read an integer in another base without changing its value

Separate the number from its written form

A number can be written using different positional bases while keeping the same value. This converter reads an integer in the selected source base and writes it in the selected target base. It supports bases from two through thirty-six and signed integers within a fixed sixty-four-bit range. It does not convert a file, encode a message or change measurement units. Start by identifying how the source integer is written; the same visible digits can mean different values under different bases.

The three fields are Integer, From base and To base. Enter the digits without a base prefix. A source that writes a hexadecimal value with a leading zero followed by the letter x needs that notation interpreted before entering the digits. The field label explicitly asks for no prefix. Choosing base sixteen supplies the context separately. Removing a prefix is appropriate only when you know it is notation for the base, not part of some unrelated identifier that should never have been treated as an integer.

Work through the hexadecimal example

Enter FF in Integer, sixteen in From base and ten in To base, then choose Convert. The result is two hundred fifty-five. In hexadecimal, the letter F represents fifteen. The left F occupies the sixteens position and the right F occupies the ones position. Fifteen times sixteen plus fifteen equals two hundred fifty-five. The diagram makes the two place values visible so that the decimal result can be checked rather than accepted merely because it appeared on screen.

The letters A through Z extend the available digit symbols beyond zero through nine. Their usefulness depends on the selected base. Hexadecimal uses A through F, while binary uses only zero and one. A letter accepted in one base can be invalid in another. This is why choosing the source base is not just a display preference. The converter needs it to interpret the integer before producing a new representation. A wrong but syntactically valid source base can describe a different value without generating an error.

Try a small binary comparison

Binary place values are powers of two. The written binary number one zero one one zero one corresponds to thirty-two plus eight plus four plus one, giving forty-five. The absent sixteen and two positions contribute zero. If you convert that integer from base two to base ten, forty-five is the expected result. Keep a short example like this when learning, because you can inspect each occupied position and compare it with the output without depending on a large unfamiliar digit string.

Changing the target base changes the written result, not the underlying integer. For example, the same forty-five is written as two D in hexadecimal because two sixteens plus thirteen equals forty-five. These examples show a conversion relationship; they are not a claim that letters embedded in an ordinary word should be interpreted as numeric data. If an input is a part code, a password or a text label, understand its format before treating its characters as digits.

Prepare digits deliberately

Use an integer spelling with no fractional point and no thousands separators. Fractions are outside this tool's supported operation. A leading minus sign can represent a negative value; it is not a request for a fixed-width two's-complement bit pattern. Uppercase and lowercase letter digits are accepted without changing their numerical meaning. The generated result uses its own normalized spelling, so do not rely on the tool to preserve decorative leading zeros, original letter case or the exact source text.

The base fields must specify whole-number bases from two through thirty-six. A fractional base or a value outside that interval is not another supported notation. Blank fields also need a deliberate entry; a missing base cannot be inferred reliably from an ambiguous digit string. If the source documentation says a value is hexadecimal, carry that fact into From base rather than guessing from whether the string happens to contain a letter.

Understand signed values

The accepted range runs from negative two to the sixty-third power through two to the sixty-third power minus one. The exact decimal endpoints are shown separately as digits below. This is the ordinary signed sixty-four-bit integer range. It limits the value, not simply the number of written characters. A long string of small digits can fit or overflow depending on the source base.

Converting negative FF from hexadecimal to decimal returns negative two hundred fifty-five. The minus sign remains a sign. It does not become a group of leading one bits, and the page provides no bit-width selector. If a device protocol uses a fixed-width unsigned field or two's-complement interpretation, that protocol needs its own explicit decoding rules. Do not assume that a signed base conversion has performed those rules just because its output resembles a familiar binary or hexadecimal number.

Know the exactness boundary

Within its supported integer range, this conversion is exact integer arithmetic rather than an approximate decimal calculation. That does not mean it supports arbitrary-length integers. A decimal value one greater than the positive signed maximum is rejected. Keep an out-of-range source unchanged and use software designed for the required range rather than deleting a digit to make the example pass. The resulting smaller integer would be a different value, even if its converted representation looked more convenient.

The integer text field has a five-hundred-twelve-character input ceiling, and the application also bounds its encoded calculation request. Those text limits do not expand the signed range. Conversely, a short digit string may already be too large in a high base. Check the actual value and format instead of estimating support from text length alone. A syntax error, an invalid digit for the selected base and an out-of-range value are different reasons to investigate the source.

Use the conversion as a learning or checking step

A useful exercise is reading a short hexadecimal value from a synthetic example and checking its place-value sum. Another is comparing the binary and decimal forms of a small nonnegative integer. Keep the source base beside the digits in a note, since a copied string such as ten is ambiguous without that context. The converter can produce the target digits; it cannot determine what a value means in a file format or whether it represents a size, flag, address or unrelated field.

If you inspect a color component or a device value, distinguish the mathematical conversion from the surrounding format rules. This page does not parse a full color string, split a byte sequence, reverse byte order or interpret a signed machine field automatically. Extracting a component requires knowledge of that format. Use a small invented sample when practicing, then consult the actual format documentation before applying the same step to real data.

Keep a reproducible result

After choosing Convert, inspect the source and target bases with the output. Copy result writes the generated integer text, not a full explanation of the settings. Save those settings separately if you need to repeat the operation. There is no Download control on this page. Changing an input clears the earlier result, and Reset clears the workspace. Verify any pasted result at its destination, especially when a leading minus sign or a long run of similar digits is significant.

A reverse conversion using the correct settings can be a useful consistency check, but it should not replace understanding the source. Two conversions using the same wrong source assumption can still produce a coherent-looking round trip. Preserve the original digits, their documented base and the expected small example independently. That combination makes an issue easier to explain while avoiding any promise that numerical conversion validates a whole protocol, identifies an encoding or makes private data safe to share.

Signed minimum: -9223372036854775808
Signed maximum: 9223372036854775807

A few more useful tools

Find a tool

Type a tool name, such as JSON or percentage.

Quick links

Browse by category

All tools