What does it do?
Converts an IPv4 address between its different forms: dotted (192.168.1.1), integer, hexadecimal, binary and octal. It detects the format you type automatically.
Why does it matter?
Many databases, server logs, blocklists and programs store IPs as integers or in hexadecimal because they take less space and compare faster. To read or search them, you need to convert them.
How does it work?
An IPv4 address is a 32-bit number. Each part of the dotted form is one byte, so they're combined (multiplying by 256) to get the integer, and from there converted to the other bases. Calculated in your browser.
How to read the result
- Integer
- The number from 0 to 4,294,967,295 that represents the IP.
- Hexadecimal
- The 4 bytes in hex, for example 0xC0A80101.
- Binary
- The 32 bits, separated by byte.
What is it for?
- Read IPs stored as numbers in a database or log.
- Enter IP ranges in programs that expect integers.
- Understand and teach how masks and bits work.