{"id":6162,"date":"2023-01-01T23:39:02","date_gmt":"2023-01-01T23:39:02","guid":{"rendered":"https:\/\/computerscienced.co.uk\/site\/?page_id=6162"},"modified":"2023-01-01T23:39:02","modified_gmt":"2023-01-01T23:39:02","slug":"how-to-binary-to-hexadecimal-conversion","status":"publish","type":"page","link":"https:\/\/computerscienced.co.uk\/site\/hexadecimal-conversion\/how-to-binary-to-hexadecimal-conversion\/","title":{"rendered":"How to &#8211; Binary to Hexadecimal Conversion"},"content":{"rendered":"\n<p>Converting binary into hexadecimal is very simple. All we need is to remember that hexadecimal is a base 16 number.\u00a0 This means that each number column can contain 16 characters.\u00a0 Hexadecimal goes from 0 to F:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Decimal Number<\/strong><\/td><td><strong>Binary Number<\/strong><\/td><td><strong>Hexadecimal Number<\/strong><\/td><\/tr><tr><td>0<\/td><td>0000<\/td><td>0<\/td><\/tr><tr><td>1<\/td><td>0001<\/td><td>1<\/td><\/tr><tr><td>2<\/td><td>0010<\/td><td>2<\/td><\/tr><tr><td>3<\/td><td>0011<\/td><td>3<\/td><\/tr><tr><td>4<\/td><td>0100<\/td><td>4<\/td><\/tr><tr><td>5<\/td><td>0101<\/td><td>5<\/td><\/tr><tr><td>6<\/td><td>0110<\/td><td>6<\/td><\/tr><tr><td>7<\/td><td>0111<\/td><td>7<\/td><\/tr><tr><td>8<\/td><td>1000<\/td><td>8<\/td><\/tr><tr><td>9<\/td><td>1001<\/td><td>9<\/td><\/tr><tr><td>10<\/td><td>1010<\/td><td>A<\/td><\/tr><tr><td>11<\/td><td>1011<\/td><td>B<\/td><\/tr><tr><td>12<\/td><td>1100<\/td><td>C<\/td><\/tr><tr><td>13<\/td><td>1101<\/td><td>D<\/td><\/tr><tr><td>14<\/td><td>1110<\/td><td>E<\/td><\/tr><tr><td>15<\/td><td>1111<\/td><td>F<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>EG<\/strong><\/p>\n\n\n\n<p>Using the table &#8211; <strong>0111 in binary is 7 in hexadecimal.<\/strong><\/p>\n\n\n\n<p>Using the table &#8211; <strong>1010 in binary is A in hexadecimal<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Binary to 2 Digit Hexadecimal Conversion<\/h1>\n\n\n\n<p>In GCSE computer science you will be expected to convert binary into 2 digit hexadecimal.\u00a0 Again we need to remember that hexadecimal is a base 16 number and each number column can go from 0-9 and A-F.\u00a0<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Example 1<\/h2>\n\n\n\n<p><strong>Convert Binary number  10100010 into Binary<\/strong><\/p>\n\n\n\n<p>Split the binary number into a 2 column table in nibbles (4 bits).<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>1010<\/strong><\/td><td><strong>0010<\/strong><\/td><\/tr><tr><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Using the table above and our knowledge of binary, we can now convert the individual binary nibbles into hexadecimal.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>1010<\/strong><\/td><td><strong>0010<\/strong><\/td><\/tr><tr><td>1010 = A<\/td><td>0010 = 2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>We now simply combine these 2 hexadecimal digits:<\/p>\n\n\n\n<p class=\"has-border-background-color has-background\"><strong>1010 0010 = A2<\/strong> <strong>in hexadecimal<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Example 2<\/h2>\n\n\n\n<p><strong>Convert binary<\/strong> <strong>number 00101000 into hexadecimal<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>0010<\/strong><\/td><td><strong>1000<\/strong><\/td><\/tr><tr><td>0010 = 2<\/td><td>1000 = 8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-border-background-color has-background\"><strong>0010 1000 = 28 in hexadecimal<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converting binary into hexadecimal is very simple. All we need is to remember that hexadecimal is a base 16 number.\u00a0&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2739,"parent":956,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"disable_featured_image":true,"footnotes":""},"class_list":["post-6162","page","type-page","status-publish","has-post-thumbnail","hentry"],"blog_post_layout_featured_media_urls":{"thumbnail":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/10\/undraw_Share_opinion_re_4qk7.svg",150,150,true],"full":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/10\/undraw_Share_opinion_re_4qk7.svg",965,727,false]},"categories_names":null,"comments_number":"0","_links":{"self":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/6162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/comments?post=6162"}],"version-history":[{"count":1,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/6162\/revisions"}],"predecessor-version":[{"id":6163,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/6162\/revisions\/6163"}],"up":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/956"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media\/2739"}],"wp:attachment":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media?parent=6162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}