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-07-26

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

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 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 — chmod, umask, and stat all speak octal, not hex.
Does it accept a 0x prefix or spaces?
Yes. A leading 0x and separating spaces are ignored, so you can paste values straight from code, a hex dump, or a debugger.
What if my input is not valid hex?
Hexadecimal only uses the digits 0-9 and letters A-F. Any other character is flagged so you can correct it rather than getting a wrong answer.

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"}'
Esc
↑↓ navigate open Esc close