CCNA HUB

CCNA and Linux Training Hub!

CCNA and Linux Training Hub!

  • Home
  • R&S
    • IP Fundamentals
    • Switching
    • Routing
    • IPv4 Suite
    • IPv6 Suite
    • Labs
  • Linux
    • Virtualization 101
    • Basic Configuration
    • Security Measures
    • Database Server
    • Web Server
    • HTTP Tuneup
    • FTP Server
    • Mail Server
    • DNS Server
    • Control Panels
    • Monitoring
    • Backup and Maintenance
  • WordPress
  • About
    • Contact Us
    • Be part of It
    • Under the Hood
CCNA HUB > Blog > IP Fundamentals > Decimal, Binary, and Hexadecimal Conversion > How to Convert Decimal to Binary

How to Convert Decimal to Binary

By Imad Daou Leave a Comment

Post Views: 8,193

CCNA Routing and Switching
<< IP and Network Fundamentals Course
>> Decimal, Binary, and Hex Conversion Section

section table
  1. Understanding Base Number Systems
  2. How to Convert Decimal to Binary
  3. How to Convert Decimal to Hexadecimal
  4. How to Convert Binary to Decimal
  5. How to Convert Binary to Hexadecimal
  6. How to Convert Hexadecimal to Decimal
  7. How to Convert Hexadecimal to Binary
Image Source
Image Source

How to Convert Decimal to Binary and vise versa is crucial to master, such skills will give you the confidence when you deal with Network and Storage devices. Mastering Network topics such IP Addressing Subnetting, Speed measurements Megabits (Mb) and Gigabits (Gb), or even Storage measurements such MegaByte (MB), GigaByte (GB), and TeraByte (TB), requires you understand and master how to convert back and fourth between the 3 base numbers: 10, 2, and 16.

Converting Decimal to Binary

At first, it might look tricky to plug all pieces together, but once you practice few times, it will be so easy to understand the process and come up with the answer right away. I have listed few examples for you to go through, however, and after you are done, pick your own few numbers and convert them to binary.

E.g. Convert 212 decimal to binary

Step 1: Write down the Binary chart on a piece of paper. Start from 1 up to 128. If the decimal number bigger than 256, write 256 after 128, if it’s bigger than 512, write 512 after 256, and so on.

128  64  32  16  8  4  2  1

Step 2: subtraction operation. Starting from the left side, subtract the place value from the given decimal number. If you were able to subtract the place value from the given decimal number, write 1 under this value. If you were not able to subtract the place value from the given decimal number, write 0 under that place value. Follow the detailed subtraction steps below. 

Remember: We are subtracting the Binary Place Values from the given Decimal number which in our case 212, till this decimal number Zeros Out and no more subtraction can be done.

Detailed Subtraction Steps

a. Ask yourself, would 128 place value goes into decimal number 212? Yes! write 1 under 128, therefore, 212 – 128 = 84 as remainder, take it and move on to the next Binary place Value.

b. Would 64 place goes into 84? Yes! write 1 under 64 and subtract 84 – 64 = 20 again as remainder.

c. 32 won’t go into 20, write 0 under 32 and move on with the remainder 20 to the next place.

d. 16 goes into 20, write 1 under 16 and subtract 20 – 16 = 4

e. 8 won’t go into 4, write 0 under and 8 and move on with the remainder 4 to the next place.

f. 4 goes into 4, write 1 under 4 and subtract 4 – 4 = 0 >> Bingo! 212 Decimal Number Zeroed Out.

g. Remember: If the decimal number zeros out on the middle of the chart, write zeros under the rest of the places.

128  64  32  16  8  4  2  1
  1   1   0   1  0  1  0  0

Step 3: Verify – Add only the ON places: 128 + 64 + 16 + 4 = 212

Therefore, 212 decimal equal to 11010100.

Note: I am going to minimize the steps at the next examples to expedite the process.

Convert 83 Decimal to Binary

Step 1: write down the binary chart on a piece of paper.

Step 2: subtract the binary places from the decimal number one by one. If positive write 1, and if negative write 0. After you done, you should have similar to the following chart.

128  64  32  16  8  4  2  1
  0   1   0   1  0  0  1  1 

Step 3: add only the ON places: 64 + 16 + 2 + 1 = 83

Always drop the leading Zeros from the left side.

Therefore, 83 decimal equal to 1010011.

Convert 199 Decimal to Binary

Step 1: write down the binary chart on a piece of paper.

Step 2: subtract the binary places from the decimal number. After you done, you should have similar to the following chart:

128  64  32  16  8  4  2  1
  1   1   0   0  0  1  1  1 

Step 3: add only the ON places: 128 + 64 + 4 + 2 + 1 = 199

Therefore, 199 decimal equal to 11000111.

Convert 603 Decimal to Binary

Step 1: write down the binary chart on a piece of paper:

Step 2: subtract the binary places from the decimal number. 

1024  512  128  64  32  16  8  4  2  1
   0    1    0   1   0   1  1  0  1  1 

Step 3: add only the ON places: 512 + 64 + 16 + 8 + 2 + 1 = 603

Therefore, 603 decimal equal to 1001011011.

Convert 186 Decimal to Binary

Step 1: write the down the binary chart on a piece of paper.

Step 2: subtract the binary places from the decimal number.

128  64  32  16  8  4  2  1
  1   0   1   1  1  0  1  0 

Step 3: add only the ON places: 128 + 32 + 16 + 8 + 2 = 186

Therefore, 186 decimal equal to 10111010.

Decimal to Binary Chart

After this practice, you should be able to know by heart all decimal value in Binary from 0 (0000) up to 15 (1111).

  • 0 = 0000
  • 1 = 0001
  • 2 = 0010
  • 3 = 0011
  • 4 = 0100
  • 5 = 0101
  • 6 = 0110
  • 7 = 0111
  • 8 = 1000
  • 9 = 1001
  • 10 = 1010
  • 11 = 1011
  • 12 = 1100
  • 13 = 1101
  • 14 = 1110
  • 15 = 1111

Subject Related

By Wikipedia Decimal | Math is Fun | Numbers Better Explained | Free Online Calculator | How to Master CCNA | R&S ICND1 and ICND2 | Network Warrior | CCNA R&S Study Guide | R&S 200-120 Official Guide | Routing and Switching Guide

CCNA Routing and Switching
<< IP and Network Fundamentals Course
>> Decimal, Binary, and Hex Conversion Section

section table
  1. Understanding Base Number Systems
  2. How to Convert Decimal to Binary
  3. How to Convert Decimal to Hexadecimal
  4. How to Convert Binary to Decimal
  5. How to Convert Binary to Hexadecimal
  6. How to Convert Hexadecimal to Decimal
  7. How to Convert Hexadecimal to Binary
  • Was this information helpful?
  • Yes(0)   No(0)
Get CCNA R&S Updates!

system-software-update-hi

Filed Under: IP Fundamentals, Decimal, Binary, and Hexadecimal Conversion Tagged With: Binary, Decimal, Hexadecimal

About Imad Daou

CCNA HUB Founder, Imad has been in IT field since 2007. Currently holding A+, Network+, Server+, Security+, and Storage+. HP, Dell, and IBM Hardware Certified. Pursuing Linux+, LPIC-2, RHCSA, RHCE, AWS, CCNA, and JNCIA.

LEAVE A COMMENT Cancel reply

We're glad you have chosen to leave a comment. All comments are moderated according to our comment policy. Use your real name and not keywords in the name field. Let's have a personal and meaningful conversation.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

Get CCNA HUB Updates!

MISSION

CCNA, Linux, and Wordpress Training Hub. For Students, Network Pros, DevOps, Linux/Wordpress Lovers, and Entrepreneurs. CCNA HUB Articles and Labs will help you build a solid foundation in Network, Linux, and Wordpress. E.g. Linux WHS will show you how to build a Professional Web Hosting Solution using DigitalOcean or Vultr VPS provider.

TAG CLOUD

switches tcp sockets Wordpress Multisite T1 wordpress CMS TCP wide area network Wordpress Hosting Hub understanding switching VLSM transport layer transmission control protocol udp sockets WAN wordpress.org CMS sudo VPS Hosting su SSH Client subnet mask virtual circuit understanding Routing transport layer protocols TCP/IP SSH Agent Forwarding

RSS UPDATES

  • IP Fundamentals
  • CCNA R&S
  • CCNA Labs
  • Linux WHS
  • Wordpress
  • All CCNA HUB Topics

Copyright © 2022 ·Genesis Sample Theme - Genesis Framework by StudioPress - WordPress - Log in

This website uses cookies. By continuing to browse the site, you are agreeing to our use of cookies
  • Home
  • R&S
    • IP Fundamentals
    • Switching
    • Routing
    • IPv4 Suite
    • IPv6 Suite
    • Labs
  • Linux
    • Virtualization 101
    • Basic Configuration
    • Security Measures
    • Database Server
    • Web Server
    • HTTP Tuneup
    • FTP Server
    • Mail Server
    • DNS Server
    • Control Panels
    • Monitoring
    • Backup and Maintenance
  • WordPress
  • About
    • Contact Us
    • Be part of It
    • Under the Hood