Octal to Hexadecimal Converter
Enter an octal number and instantly see its hexadecimal equivalent along with decimal and binary representations.
Octal Input
Hex case:
Conversion Results
Enter an octal number on the left to see results.
Hexadecimal (Base 16)
Decimal (Base 10)
Binary (Base 2)
Octal (Base 8) — input
Common Octal → Hex Reference
| Octal | Hex | Decimal | Description |
|---|---|---|---|
| 0 | 0x0 | 0 | Zero |
| 7 | 0x7 | 7 | Max single octal digit |
| 10 | 0x8 | 8 | First two-digit octal |
| 17 | 0xF | 15 | Max single hex digit |
| 20 | 0x10 | 16 | First two-digit hex |
| 77 | 0x3F | 63 | Max two-digit octal |
| 100 | 0x40 | 64 | Three-digit octal start |
| 377 | 0xFF | 255 | Max byte value |
| 755 | 0x1ED | 493 | Unix rwxr-xr-x perm |
| 777 | 0x1FF | 511 | Unix rwxrwxrwx perm |
Summary
Enter an octal number and instantly see its hexadecimal equivalent along with decimal and binary representations.
How it works
- Type or paste an octal number (digits 0–7) into the input field.
- The converter validates each character and highlights invalid input in real time.
- The octal value is parsed to a decimal integer using JavaScript's parseInt with base 8.
- The decimal integer is then formatted as hexadecimal (uppercase) and binary.
- Use the Copy button next to any result field to copy that value to your clipboard.
- Click Swap to reverse the direction and start from a hexadecimal input instead.
Use cases
- Convert Unix file permission codes (e.g. 755, 644) to hex for use in scripts.
- Cross-reference number bases when debugging embedded systems or microcontrollers.
- Translate octal escape sequences in legacy source code to hex equivalents.
- Verify number-base conversions during computer-science coursework or exams.
- Quickly check octal literals used in C/C++ against their hex memory addresses.
- Convert octal color component values to hex for use in CSS or image editors.
Frequently Asked Questions
Related tools
Last updated: 2026-05-29 ·
Reviewed by Nham Vu