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.

Common Octal → Hex Reference

Octal Hex Decimal Description
00x00Zero
70x77Max single octal digit
100x88First two-digit octal
170xF15Max single hex digit
200x1016First two-digit hex
770x3F63Max two-digit octal
1000x4064Three-digit octal start
3770xFF255Max byte value
7550x1ED493Unix rwxr-xr-x perm
7770x1FF511Unix rwxrwxrwx perm

Summary

Enter an octal number and instantly see its hexadecimal equivalent along with decimal and binary representations.

How it works

  1. Type or paste an octal number (digits 0–7) into the input field.
  2. The converter validates each character and highlights invalid input in real time.
  3. The octal value is parsed to a decimal integer using JavaScript's parseInt with base 8.
  4. The decimal integer is then formatted as hexadecimal (uppercase) and binary.
  5. Use the Copy button next to any result field to copy that value to your clipboard.
  6. 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

Last updated: 2026-07-01 · Reviewed by Nham Vu