Favorite places of your favorite city
Home
Add to preferred sources on Google

Number Base Converter — Bases 2–36

Rewrite one signed whole number in another base, from binary through base 36. Choose both bases explicitly, convert the complete value and copy the result. This is integer notation, not a fixed-width bit-pattern converter.

Convert one signed integer between bases 2 and 36. Choose both bases explicitly; the result is an exact integer, not a fixed-width bit pattern.

Conversion input

Use ASCII 0–9 and A–Z, with an optional leading + or -. Lowercase is accepted. Each digit must be smaller than the source base. Prefixes and exponents are not detected: their letters are digits when valid in the selected base.

Up to 4096 digits, including leading zeroes; at most 8192 UTF-16 code units before trimming. Only outer ASCII spaces, tabs and line breaks are ignored.

Converted number — Base 2

Enter a number and select Convert.

Conversion stays in your browser. The tool does not upload or save your numeral or put it in the URL. Copy uses your clipboard when requested; shared site services remain subject to site policies.

Choose the bases and convert one integer

  1. Enter one numeral and select its source base. Use ASCII digits 0–9 and letters A–Z, with lowercase accepted. A means 10 and Z means 35; every digit must be smaller than the source base. An optional leading plus or minus is allowed.
  2. Choose any target base from 2 to 36 and press Convert. The result uses uppercase letters, no redundant leading zeroes and a minus only for a negative nonzero value. Open How this conversion works for active steps or a bounded summary.
  3. Copy result copies only the complete numeral, without a base label or final newline. Swap uses that result as the new input and exchanges the bases, then waits for Convert again. If the result exceeds the input digit limit, Copy remains available but Swap is disabled.

Understand the digits, value and explanation

In positional notation, each place contributes according to the selected base. The alphabet here is always 0–9 followed by A–Z. Base 20 therefore ends at J and base 26 at P; this is not the letter-only numbering used for spreadsheet columns.

No prefix or exponent is detected automatically. Characters such as B, X and E are ordinary digits whenever the selected base allows them. For example, 0x10 is invalid in base 16 but means 42804 in base 36; 1e3 means 483 in base 16, not one thousand.

The complete magnitude uses exact integer arithmetic rather than a floating-point number intermediate. For example, decimal 9007199254740993 becomes hexadecimal 20000000000001 without first rounding to a nearby number. Leading zeroes and a leading plus are representation choices, not extra precision.

For short enough values, the method reads digit values into an exact magnitude, divides by the target base and reads remainders upward, then restores the sign. Decimal, zero and same-base cases omit unnecessary operations. Longer values keep their complete exact result while detailed rows are replaced by an active summary.

Examples with signs, normalization and large integers

Use example fills -A0B in base 12 with target base 7, without calculating automatically. A is 10 and B is 11, so the magnitude is 1451. Dividing by 7 gives remainders 2, 4, 1 and 4; reading upward gives 4142 and restoring the minus gives -4142.

Converting 000ff from base 16 to base 16 gives FF: the value remains 255 while case and redundant leading zeroes are normalized. A negative zero such as -0000 becomes 0 in every target base. Significant trailing zeroes are not removed.

FF in base 16 is positive 255, while -FF is negative 255. Neither is automatically an eight-bit signed value. Decimal -18446744073709551615 converts to -FFFFFFFFFFFFFFFF; this remains a signed mathematical numeral, not a chosen-width machine word.

Explicit integer syntax and finite display limits

The received draft fits 8192 UTF-16 code units before trimming. At most 4096 magnitude digits are accepted, including leading zeroes. Only outer ASCII space, tab, CR and LF are ignored; blank or sign-only input is incomplete, not zero. Unicode digits, minus substitutions and internal whitespace are rejected.

There are no fractions, points, exponent syntax, grouping separators, arbitrary alphabets, bases outside 2–36, batch conversion, byte encodings or fixed-width and two's-complement modes. Prefix-looking characters are interpreted only as digits of the selected source base, never stripped.

The longest supported complete result has 21178 characters including a possible minus. Detailed rows are shown only up to 16 normalized source digits and 64 target digits; this affects the explanation, not exactness. A result with more than 4096 magnitude digits cannot be swapped back into this input.

These are product bounds, not a performance guarantee for every device. A browser without native exact-integer support shows an unsupported state instead of using a less accurate fallback. There is no file export, stored history or automatic conversion after an edit; an edit removes the previous answer.

Local conversion and current clipboard output

This tool adds no upload, account, saved history, input logging, persistent storage or numeral-bearing share URL. Conversion stays in the browser. Copy uses the current complete result; denial offers selection for manual copying. Existing site services remain subject to site policies; local computation does not certify them or deployment.

Questions about bases and exact integer conversion

The source selector determines the base and no prefix is stripped. X is not a valid base-16 digit. In base 36 it means 33, so the same characters are ordinary digits with value 33 × 36² + 1 × 36 = 42804. Remove a notation prefix yourself when that is what you intended.

This tool converts mathematical signed integers, not fixed-width words. FF in base 16 is 255. A negative value needs an explicit leading minus. Interpreting a bit pattern as signed requires a width and representation policy that this version does not provide.

No. Every base uses the same positional alphabet beginning with zero: 0–9 then A–Z. In base 26, A is 10 and P is 25. Spreadsheet column labels use a different letter-only convention without an ordinary zero digit.

The output is canonical uppercase notation. Redundant leading zeroes and a leading plus are removed, and every zero becomes 0 without a minus. Significant trailing zeroes remain because removing them would change the integer.

Changing bases can increase the number of digits. A valid 4096-digit base-36 input can produce more than 4096 binary digits. The complete result remains available, but Swap cannot place it into this input without breaking the input limit or losing digits.

No. The full result remains exact. To avoid thousands of rows, detailed operations are limited to 16 normalized source digits and 64 target digits. Larger conversions show the active bases, sign, digit counts and normalization summary instead.

Sources and review

These references explain positional notation and ECMAScript integer operations; they do not certify every browser or notation convention.

Sources reviewed 6 November 2026. The input and method limits are this product's bounded profile, not a universal notation or browser certification.

Scientific Calculator

Evaluate real expressions with powers, roots, logs and degree/radian trigonometry, with explicit precedence and clear numerical limits.

Open tool — Scientific Calculator

Percentage Change Calculator

Compare an original and new value to find the percentage increase or decrease and the numeric change.

Open tool — Percentage Change Calculator

Average Calculator

Find the arithmetic mean of a number list, with a clear decimal-format choice, count and sum.

Open tool — Average Calculator

Percentage Calculator

Find a percentage of a number, one number as a percentage of another, or the whole from a known amount and percentage.

Open tool — Percentage Calculator

Weighted Average Calculator

Calculate an average from values and their relative weights. Check total weight and copy an explained result.

Open tool — Weighted Average Calculator

Fraction Calculator

Calculate with fractions and mixed numbers, or simplify one fraction to lowest terms.

Open tool — Fraction Calculator

Median Calculator

Find the median of a number list, with the middle values and a sorted preview.

Open tool — Median Calculator

LCM Calculator

Find the exact least common multiple of 2–20 positive whole numbers, with the GCD and optional steps.

Open tool — LCM Calculator

Circle Area & Circumference Calculator

Find circle area and circumference from a radius or diameter, with metric and imperial unit conversion.

Open tool — Circle Area & Circumference Calculator

Scale Calculator

Convert drawing or model lengths to real dimensions, work backwards, or find the scale from matching lengths.

Open tool — Scale Calculator

Random Number Generator

Generate random integers within inclusive limits, with optional uniqueness and sorting.

Open tool — Random Number Generator

GPA Calculator

Calculate a credit-weighted term GPA or combine compatible quality-point and credit totals.

Open tool — GPA Calculator

Final Grade Calculator

Find the exam score needed for your target course grade using your current grade and final weight, with upward rounding and clear limits.

Open tool — Final Grade Calculator
View all tools in this category