My Learning

Keep this for later

Sign in or create a free account to save it. You’ll return to this page afterward.

Sign inCreate an account

HEX to Octal

Convert one nonnegative hexadecimal integer to octal without losing large-number precision.

Enter one nonnegative whole number, not a list of bytes.

How to use this tool

Enter one hex integer, optionally beginning with 0x, and process it. The result is one octal integer.

Important to know

Convert one nonnegative hexadecimal integer to octal without losing large-number precision.

This converts a whole number, not encoded text or a list of bytes. Up to 1,024 hexadecimal digits are supported.

Formula and methodology

Repeatedly divide the base-16 integer by 8; the successive remainders, read in reverse, are its octal digits.

Example

Hexadecimal FF is octal 377.

Frequently asked questions

Does this decode hex bytes as text?

No. Use Hex to Text to decode a sequence of UTF-8 bytes.