Number base converter

How to use

Convert an integer between bases 2 and 36. The page always shows binary, octal, decimal and hex, plus a custom target base. Optional two’s-complement widths treat the input as a fixed-width bit pattern. Nothing is stored or sent anywhere.

Spaces and underscores are ignored. 0b, 0o and 0x prefixes are allowed when they match the source base.

Two’s complement
Display

About

Values are exact integers (BigInt), not floating point. Digits are 0–9 then A–Z, case-insensitive, up to 4,096 digits. With two’s complement off, a leading minus is a negative integer and other bases also get a minus sign. With a width selected, an unsigned input is a bit pattern of that width (so hex FF in 8-bit is -1), and a leading minus must fit the signed range. This is not the unit converter, which covers length, mass, temperature and time zones only.