Math & Algebra Calculators

Number Base Converter

Convert non-negative safe integers between bases 2 and 36 or display decimal, binary, octal, hexadecimal, base32, and numeric base64 forms.

Number Base Converter — Online Calculator

Number Base Converter

Edit any base to update all six representations.

Decimal 255 = binary 11111111 = hex FF.

Base 64 here is numeric radix-64 using 0-9, A-Z, a-z, + and /. It is not Base64 byte encoding.

Advertisement

The Number Base Converter converts non-negative safe integers between bases 2 and 36. Its all-base mode also displays decimal, binary, octal, hexadecimal, base32, and numeric base64 representations.

Conversion method

The input is validated digit-by-digit for the selected source base, parsed to a decimal integer, and formatted in the destination base. Letters are normalized to uppercase for validation and output.

Example

Binary 1010 parses as decimal 10. Converting 10 to hexadecimal returns A, to octal returns 12, and to base 2 returns 1010.

Questions

Which bases are supported?

Direct conversion supports bases 2 through 36. The all-base view includes named bases plus numeric base64 notation.

Can I convert negative numbers?

No. The calculator accepts non-negative safe integers only.

Why are invalid trailing digits rejected?

The parser validates every character against the selected base rather than silently parsing a valid prefix.

Limitations

JavaScript safe-integer precision limits the largest reliable value. This tool does not convert floating-point fractions, signed representations, or byte-encoded text.

Related Tools