All posts
How to convert Octal to Hexadecimal
Conversion factor and calculation steps from Octal (oct) to Hexadecimal (hex).
Open online converterConversion logic
The number is first converted to decimal as digits × radixⁿ, then to the selected base by division with remainder. Prefixes 0x, 0b, 0o and digit grouping with spaces or _ are allowed.
oct: digits 0 1 2 3 4 5 6 7, radix 8
hex: digits 0 1 2 3 4 5 6 7 8 9 A B C D E F, radix 16
255₈ = 2×8₂ + 5×8₁ + 5×8₀ = 128 + 40 + 5 = 173₁₀
173 ÷ 16 = 10 remainder 13 (D)
10 ÷ 16 = 0 remainder 10 (A)
255₈ = AD₁₆