CalculatorsLesson 150Free preview
IP Address Converter
This lesson is part of Web Developer Tools · All levels
Summary
IP Address Converter converts IPv4 between pointed decimal notations, binaries, hexadecimal, and 32-bit integers. Each octet is 0-255 and represents 8 bits, so conversion is basically a change in the number base. Tools like this help when reading log, writing firewall rules, or understanding how computers store IP addresses.
Key points
- IPv4 has four octets and each octet is made up of eight bits.
- The decimal 192 is equal to the binary 11000000 and the hexadecimal C0
- The IPv4 integers are o1 x 256^3 + o2 x 256^2 + o3 x 256 + o4
- IPv6 is written as eight hexadecimal groups of 16 bits
- Conversion doesn't change the address, just the way it's written.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.