Number Base Converter
Convert whole numbers between binary, octal, decimal, and hexadecimal.
From
To
Conversion result
42 (base 10) = 2A (base 16)
Result actions and exports
Share links include the entered value. Share measurements only with people you choose.
Export exact integer results
Formula and explanation
4 × 10^1 + 2 × 10^0 = 42 in decimal.
Favorite conversions
Save a pair beside any compatible result.
Recent conversions
Saving is manual. Only the latest 40 selected conversions stay in this browser. Disabling saves keeps existing entries until you clear them.
Worked example
Decimal 42 is binary 101010, octal 52, and hexadecimal 2A.