chain
Octal to Hex
⌃⏎ run · clear · / focus input
Decimal · base 10
Hexadecimal · base 16
send result to
no matches
Binary · base 2
Octal · base 8
Enter a octal value above to convert it
// about this tool

Octal to Hex Online

Updated 2026-07-26

Convert octal to hexadecimal online for free. Paste an octal value and SnapTools shows its hexadecimal representation instantly, right in your browser. Nothing you enter is uploaded.

Octal shows up most often today in Unix and Linux file permissions (chmod 755, 644) and in older C and POSIX code that still uses base-8 literals. Hex is what most modern tooling — debuggers, bitmask constants, config files — actually expects, so this converter bridges the two directly instead of making you go through binary by hand. For every base at once, use the Number Base Converter.

// how to use

  1. 1 Paste or type an octal (base-8) value into the input — digits 0-7 only.
  2. 2 SnapTools converts it to hexadecimal as you type.
  3. 3 Copy the hex result, or open the Number Base Converter for all bases at once.

// examples

Common file permission
Input
755
Output
1ED
Byte value
Input
377
Output
FF

// common uses

Converting Unix file-permission values (chmod 755, 644) into hex bitmasks Reading legacy octal literals from C, POSIX tools, or old file formats Checking a manual octal-to-hex conversion Learning how base-8 and base-16 relate to binary

// faq

Is my input uploaded to a server?
No. The conversion runs entirely in your browser, so nothing you enter leaves your machine.
How do I convert octal to hex by hand?
Convert the octal value to binary first (each octal digit is exactly 3 bits), then regroup those bits into 4-bit nibbles and read off the hex digits. This tool skips the manual regrouping and gives you the answer directly.
Why does chmod 755 show up in the examples?
Unix/Linux file permissions are traditionally written in octal (owner/group/other, each 0-7). Converting a permission value like 755 to hex is a common need when working with permission bitmasks in C, Python, or low-level tooling that expects hex.
Does it accept a leading 0 (like old-style octal literals)?
Yes — a leading 0 is just an extra digit and is safely ignored by the conversion; you do not need to strip it first.
What if my input has an 8 or 9 in it?
Octal only uses digits 0-7. An 8 or 9 is flagged as invalid, since it cannot represent a real octal digit.

Use this via API

Get a free API key →
curl -X POST https://thesnaptools.com/api/v1/tools/octal-to-hex \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"755"}'
Esc
↑↓ navigate open Esc close