Hexadecimal para octal

Converta números hexadecimais em octal sem esforço

Ferramenta de conversão

0 characters

Enter a hexadecimal number (0-9, A-F). The '0x' prefix is optional. The conversion will automatically handle both positive and negative numbers.

Representação binária:

Representação decimal:

Sobre os sistemas numéricos

Sistema hexadecimal

O sistema numérico hexadecimal, ou hexadecimal para abreviar, é um sistema numérico de base 16 que usa os dígitos de 0 a 9 e as letras AF para representar os valores de 10 a 15. O hexadecimal é comumente usado em computação e eletrônica digital porque fornece uma representação mais amigável de valores codificados em binário.

Sistema octal

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right).

Tabela de conversão hexadecimal para octal

Hexadecimal Octal Hexadecimal Octal
0 0 8 10
1 1 9 11
2 2 A 12
3 3 B 13
4 4 C 14
5 5 D 15
6 6 E 16
7 7 F 17

Processo de conversão

A conversão de hexadecimal para octal envolve duas etapas principais:

  1. Converta cada dígito hexadecimal em seu equivalente binário de 4 bits.
  2. Group the resulting binary digits into sets of three (starting from the right), and convert each group to its octal equivalent.

Exemplo: Converter hexadecimal "1A" em octal

Etapa 1: Converta cada dígito hexadecimal em binário de 4 bits:

1 → 0001

A → 1010

Combinado: 0001 1010

Step 2: Group binary digits into sets of three (from right):

000 110 100

Etapa 3: Converta cada grupo de 3 bits em octal:

000 → 0

110 → 6

100 → 4

Result:

064 (leading zeros can be omitted: 64)

Related Tools