Heksadecimalno do oktalno

Convert hexadecimal numbers to octal effortlessly

Alat za pretvaranje

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.

Binarna reprezentacija:

Decimalni prikaz:

O brojevnim sustavima

Heksadecimalni sustav

Heksadecimalni brojevni sustav, ili skraćeno heksadecimalni, je brojevni sustav s bazom 16 koji koristi znamenke 0-9 i slova A-F za predstavljanje vrijednosti 10-15. Heksadecimalni se obično koristi u računalstvu i digitalnoj elektronici jer pruža čovjeku prilagođeniji prikaz binarno kodiranih vrijednosti.

Oktalni sustav

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).

Heksadecimalna u oktalnu tablicu pretvorbe

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

Proces pretvorbe

Pretvorba iz heksadecimalnog u oktalni uključuje dva glavna koraka:

  1. Pretvorite svaku heksadecimalnu znamenku u njezin 4-bitni binarni ekvivalent.
  2. Group the resulting binary digits into sets of three (starting from the right), and convert each group to its octal equivalent.

Primjer: Pretvaranje heksadecimalnog "1A" u oktalno

Korak 1: Pretvorite svaku heksadecimalnu znamenku u 4-bitnu binarnu:

1 → 0001

A → 1010

Kombinirano: 0001 1010

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

000 110 100

Korak 3: Pretvorite svaku 3-bitnu grupu u oktalnu:

000 → 0

110 → 6

100 → 4

Result:

064 (leading zeros can be omitted: 64)

Related Tools