Using the model
Symbols, assumptions and limitations
Digits 0–9 have values zero through nine and letters A–Z represent values ten through thirty-five. This reviewed version converts signed integers exactly and does not accept fractional parts.
Worked examples
See the method in practice
Hexadecimal to binary
FF in base 16 equals 255 in base 10 and 11111111 in base 2.
Binary validation
The input 102 is rejected in base 2 because digit 2 is not part of that numeral system.
Questions
Frequently asked
Why are letters used as digits?
Bases above ten need additional digit symbols; A represents ten, B eleven, through Z thirty-five.
Are results rounded?
No. Integer conversion uses exact whole-number arithmetic.
Can this convert fractions?
Not in this version; fractional expansions may repeat and require a separate precision policy.
Sources & review
Equations and examples are checked against the references below. Results are educational and should be independently verified for safety-critical work.
MDN — Number and radixWritten by the STEM Hub editorial team · Reviewed August 11, 2026 · Review methodology