Home » Binary Converter Tools » Hex to Octal Converter

Hex to Octal Converter

Enter a hex value and get the exact octal value in seconds, with the steps shown.

Last updated 13 November 2026

Input0 chars
Output0 chars

Everything runs in your browser, so your value never leaves your device. Whole numbers only for number base conversions.

A hex to octal converter turns a hexadecimal value into an octal number. Hex and octal are both shorthand systems for binary, but they group bits differently, so converting between them by hand is easy to get wrong.

The route this tool uses goes through the decimal value. Each hex digit is worked out from its place value, the place values are added to give the decimal value, and that decimal value is then converted to octal. The steps are shown with the answer, so you can check the result, with no rounding and no sign up.

This converter is useful for computing study, embedded work and reading older code that uses octal. Everything runs in your browser, so your value never leaves your device.

Worked example: hex FF to octal

Start with the place values: F is 15, so 15 times 16 plus 15 is 255. That is the decimal value of FF.

Convert the decimal value to base 8: 255 divided by 8 is 31 with a remainder of 7, 31 divided by 8 is 3 with a remainder of 7, and 3 divided by 8 is 0 with a remainder of 3. Read the remainders from last to first: 377.

Put it together: FF in hex is 377 in octal. You can check it, since 3 times 64 plus 7 times 8 plus 7 equals 255.

How to Use This Tool

  1. Enter a hex value using digits 0 to 9 and letters A to F only.
  2. Press Convert to see the octal result and the conversion steps.
  3. Copy the result or download it as a text file.
  4. Use Load Sample to try FF, which converts to 377.

Why Use This Tool

Common Values

InputOutput
A in hex12 in octal
2A in hex52 in octal
FF in hex377 in octal
100 in hex400 in octal
1F4 in hex764 in octal

Related Conversions

If you need a different direction, try the Hex to Binary Converter, Hex to Decimal Converter, Octal to Hex Converter and Binary to Octal Converter. Each one works the same way, in your browser, with the steps shown so you can check the answer.

Frequently Asked Questions

Is the Hex to Octal Converter free to use?

Yes, it is completely free with no sign up.

How does hex become octal here?

The hex value is first worked out as a decimal value from its place values, and that decimal value is then converted to octal.

What if I enter an invalid hex digit?

You get a plain error message and no output, because hex digits are only 0 to 9 and A to F.

Is my value uploaded to a server?

No. All conversion happens in your browser on your own device, so your value never leaves your computer.

What is hex FF in octal?

FF in hex is 377 in octal, because FF is 255 in decimal, and 255 in octal is 377.

Can I enter hex with a 0x prefix?

Yes. You can type 0xFF or FF, and the tool gives the same answer. The 0x prefix is stripped before the conversion, so it does not change the result.

What is the largest hex value this tool converts?

There is no fixed limit in the tool. It uses BigInt, so long hex values stay exact with no rounding. Very long values still convert, but the steps shown grow with the value.

How is hex to octal different from hex to decimal?

Hex to octal gives the value in base 8, while hex to decimal gives it in base 10. FF is 377 in octal and 255 in decimal. The steps here go through the decimal value, so you see both on the way. To convert hex straight to decimal, use the Hex to Decimal Converter.

What Is Hexadecimal?

Hexadecimal is a number system with base 16. It uses the digits 0 to 9 and the letters A to F, where A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15. One hex digit holds exactly four bits, which is why programmers use it. You see hex in color codes like #FF5733, in memory addresses, in MAC addresses, in file hashes, and in code where a byte is written as two hex digits. A byte can hold any value from 00 to FF, which is 0 to 255 in decimal.

What Is Octal?

Octal is a number system with base 8. It uses only the digits 0 to 7, so the digit 8 never appears in an octal value. One octal digit holds exactly three bits, which is why octal was common on early computers with word sizes that were multiples of three. Today you still see octal in Unix file permissions, in older code, and in some embedded systems. The value 377 in octal is 255 in decimal, and 10 in octal is 8 in decimal.

Hex to Octal Reference Table

This table lists every hex digit from 0 to F with its binary, octal and decimal value. Use it to check a conversion by hand.

HexBinaryOctalDecimal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
A10101210
B10111311
C11001412
D11011513
E11101614
F11111715

More Worked Examples

Each example below follows the same decimal route the tool uses: hex to decimal by place values, then decimal to octal.

Where Hex to Octal Is Used

Unix file permissions are the best known use of octal. A permission value like 755 gives the file owner read, write and execute rights, while the group and everyone else get read and execute rights. A value like 644 gives the owner read and write rights, while the group and everyone else get read rights only. Hex values from code and config files often need to be read as octal permission values, and that is where this converter helps.

Octal also appears in older systems and retro computing, where programmers worked in base 8, and in embedded work where hardware registers are grouped in threes. If you work with those systems, keep the reference table above close by.

Hex to octal is one of several number conversions on this site. To go the other way, use the Octal to Hex Converter. To convert hex to another base, use the Hex to Decimal Converter or the Hex to Binary Converter. For binary, use the Binary to Decimal Converter, the Decimal to Binary Converter, or the Binary to Hex Converter. To convert octal, use the Octal to Decimal Converter, the Octal to Binary Converter, or the Decimal to Octal Converter. To convert decimal to hex, use the Decimal to Hex Converter. To convert text, use the Text to Binary Converter, the Text to Hex Converter, or the Text to ASCII Converter. To convert binary to octal, use the Binary to Octal Converter.

↑