Tool guide
About this tool.
A numeral base tells you how many digit values each position can hold. Decimal uses 0–9; binary uses 0–1; hexadecimal uses 0–9 and a–f.
Changing the base changes the spelling, not the number: decimal 255, hexadecimal ff and binary 11111111 all have the same value.
This converter reads every digit and uses exact integer arithmetic. It does not round large values or accept a valid prefix of an otherwise invalid number.
- Inspect binary flags, hexadecimal integer values, octal permission numbers or decimal IDs.
- Convert long whole-number identifiers without losing digits through floating-point arithmetic.
- Compare representations while learning positional notation. For encoded text or file bytes, use the binary/hex text tools instead.
Enter the integer in Value and choose the input’s actual base. Applying an example also sets both bases and the output mode.
Choose the target base from 2 through 36 and run the conversion. Invalid digits, fractional numbers and mismatched prefixes produce an error rather than a partial result.
Use Converted value for a directly copyable integer. JSON report also includes the original trimmed input, both bases and the exact decimal equivalent.
Copy or save the output. To check a round-trip, paste the converted value into Value and exchange the source and target bases.
- ff, base 16 → base 10: 255.
- 0b11111111, base 2 → base 16: ff.
- 0755, base 8 → base 10: 493. Without base 8, leading zeroes do not imply octal.
- 18446744073709551615, base 10 → base 16: ffffffffffffffff, with every digit retained.
- -42, base 10 → base 2: -101010 (signed magnitude, not a fixed-width two’s-complement bit pattern).
- zz, base 36 → base 10: 1295. 102 in base 2 fails because 2 is not a binary digit.
- Bases must be integers from 2 through 36. Invalid bases are rejected, never rounded or clamped.
- Only ASCII digits 0–9 and letters a–z are supported. Input letters are case-insensitive; output is lowercase without a prefix.
- 0b, 0o and 0x are input prefixes for source bases 2, 8 and 16 respectively. In another base they are an error, unless every character is a digit of that base and the rest cannot be a number in the prefix base. Prefixes may follow + or − (use ASCII -).
- Outer whitespace is ignored. Internal spaces, underscores, grouping commas, decimal points and scientific notation in decimal input are not accepted.
- Leading zeroes and a leading + are removed in the converted value. Negative zero becomes 0; padding and bit width are not retained.
- Negative values keep a minus sign. This is numeric conversion, not UTF-8 encoding, endianness conversion or fixed-width two’s-complement interpretation.
- Up to 10,000 input digits plus an optional sign and prefix are accepted; the raw input also has this size bound. Output can have more digits in a smaller base and is never truncated.
- JSON report represents decimal values inside ±9007199254740991 as numbers and larger values as exact strings. Its output field is always a string, so another application can preserve all digits.