Octal To Hexadecimal
Reverse Conversion
How This Converter Works
Converts an unsigned octal integer to uppercase hexadecimal.
Formula or rule
Remove whitespace and underscores, validate digits 0-7, parse as base 8, then format in base 16 and uppercase.
Example
- Input
- 157
- Calculation
- 157₈ = 111₁₀ = 6×16 + 15.
- Result
- 6F