UTILS.
Private by default
b·n

Arbitrary Base Converter

Convert whole numbers between any bases from 2 to 36, with exact BigInt math.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
— output appears here —

About this tool

Convert an integer from one number base to another for any base between 2 and 36, using BigInt for exact results no matter how large the value.

Type an integer and set the from and to bases (whole numbers from 2 to 36). Digits are 0-9 then a-z for 10 to 35; input is case-insensitive and the result is uppercase. One leading minus or plus sign is accepted and surrounding spaces are trimmed.

Values are parsed with BigInt. Only whole numbers work: a decimal point, inner spaces, underscores and prefixes such as 0x are not recognised and give a message about an invalid digit. The page opens with ff converted from base 16 to 2.

Frequently asked questions

Which digits are valid?
Digits 0–9 then letters a–z, so base 16 uses 0–9 and a–f, and base 36 uses the full 0–9 and a–z.
Can it handle very large numbers?
Yes — parsing and conversion use BigInt, so even hundreds of digits convert without rounding errors.
Does it convert fractions like 0.1?
No. A decimal point is not a valid digit.
Can I include a 0x or 0b prefix?
No. Prefixes are not stripped, so enter just the digits and set the from base.

More tools