Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
99 views
in Computer by (50.2k points)
closed by

How to convert a number from Hexadecimal to Octal and Octal to Hexadecimal ?

1 Answer

+1 vote
by (46.8k points)
selected by
 
Best answer

Hexadecimal to Octal and Octal to Hexadecimal :

To convert Hexadecimal to Octal, Convert each digit of Hexadecimal Number to it’s binary equivalent and write them in 4 bits. Then, combine each 3 bit binary number and that is converted into octal.

Example

Convert the Hexadecimal number (A42)16 to its Octal equivalent.

    A   |    4    | 2

1010 | 0100 | 0010

101 | 001 | 000 | 010

Answer : (5102)8

To convert Octal to hexadecimal, convert each digit of Octal Number to it’s binary equivalent and write them in 3 bits. Then, combine each 4 bit binary number and that is converted into hexadecimal.

Example

Convert the Octal number (762)8 to its hexadecimal equivalent.

   7  |    6  |   2

101 | 110 | 010

0001 | 0111 | 0010

Answer : (172)16

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...