Number Base Converter

Convert signed integer strings exactly between bases 2 through 36.



Question

What is a number base converter?

A number base converter rewrites the same integer with a different radix. Binary uses base 2, decimal uses base 10, hexadecimal uses base 16, and Base36 uses digits plus uppercase letters.

This tool accepts integer strings in any base from 2 through 36, validates each digit against the selected source base, and formats the result with uppercase letters for bases above 10. Optional leading + and - signs are supported.

Large integers are handled exactly in your browser instead of being rounded to floating-point values. To keep the page responsive, inputs are limited to 10,000 digits after trimming whitespace.


Code

Supported digits

The supported digit alphabet is 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ. Digits above the selected source base are rejected, so 2 is invalid in binary and G is invalid in hexadecimal. Spaces, underscores, decimal points, prefixes such as 0x, and digit-group separators are not accepted.

Quick examples include 101101 from base 2 to decimal 45, decimal 255 to hexadecimal FF, and hexadecimal FF to binary 11111111.

Fractional numbers, separators, scientific notation, byte encodings, floating point conversion, and arbitrary text encodings are intentionally not supported by this integer-only converter.


Books

References