Number base convert
base_convertConvert whole numbers of any size between bases 2–36, auto-detect 0x/0b/0o input, ignore separators, and view bit length and two’s complement fit at 8/16/32/64 bits.
Instructions
Convert a whole number of any size (BigInt) between bases 2–36: binary, octal, decimal, hex, base 36 or any other. Input base can be auto-detected from 0x / 0b / 0o prefixes; spaces, _ and , separators are ignored; negatives OK. Also shows bit length and the two's complement view (signed/unsigned value, hex, bits) at 8/16/32/64 bits, and whether it fits. Fractions are not supported (same as the website). Web version: https://s3eidat.github.io/base-convert/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Output bases. Default [2, 8, 10, 16, 36]. | |
| from | No | Input base 2–36, or "auto" (prefix, else decimal). | auto |
| group | No | Group digits like the website (binary/hex by 4, octal by 3, decimal with commas). | |
| value | Yes | The number, e.g. "0xC0FFEE", "-0b101", "1_000_000", "zz" (with from=36). | |
| width | No | Bit width for the two's complement view. | |
| uppercase | No | Upper-case letters for bases above 10. |