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

Hex to Octal Online

Updated 2026-10-24

Convert hexadecimal to octal online for free. Paste a hex value, with or without a 0x prefix, and SnapTools shows its octal representation instantly, right in your browser. Nothing you enter is uploaded.

This direction is most useful when you have a hex bitmask (from a debugger, a header file, or a permissions dump) and need the octal form Unix tooling actually expects: chmod, umask, and stat -c %a all report in octal. Rather than expanding to binary and regrouping by hand, this converter gives you the octal value in one step. For every base at once, use the Number Base Converter.

// how to use

  1. 1 Paste or type a hexadecimal value into the input (a leading 0x and spaces are fine).
  2. 2 SnapTools converts it to octal as you type.
  3. 3 Copy the octal result, or open the Number Base Converter for all bases at once.

// examples

Permission-style value
Input
1ED
Output
755
Byte value
Input
FF
Output
377

// common uses

Converting a hex permission bitmask into an octal chmod value Reading hex constants from code as their octal equivalent Checking a manual hex-to-octal conversion Learning how base-16 and base-8 relate to binary

// faq

Why do aircraft transponder codes only ever use the digits 0 through 7?
Air traffic control squawk codes are four octal digits, from 0000 to 7777, because each digit is transmitted as 3 bits and the values 8 and 9 have no 3-bit representation. It is one of the few places outside Unix permissions where octal, not hex, is still the operational standard.
How do I convert hex to octal by hand?
Expand the hex value to binary (each hex digit is exactly 4 bits), then regroup those bits into 3-bit groups from the right and read off the octal digits. This tool does the regrouping for you.
Why would I need octal from a hex value?
The most common case is turning a hex-encoded permission or mode bitmask back into the octal form Unix tools expect, since chmod, umask, and stat all speak octal, not hex.
Does it accept a 0x prefix or spaces?
There is no need to strip it yourself. The leading 0x and any spacing inside the value are both ignored, so hex copied straight out of a dump or a debugger session pastes in fine.
What if my input is not valid hex?
This tool checks every character against the valid hex set (0-9 and A-F) before converting, and stops with a flag on the first one that does not belong, instead of silently returning a wrong octal value.

Use this via API

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