IPv4 Converter

Convert IPv4 address between dot-decimal format, integer format, hex format, binary format and IPv4-mapped IPv6.


Example: 192.168.0.1 or represented in integer format: 3232235521 or represented in hex format: 0xc0a80001 or represented in binary format: 0b11000000101010000000000000000001




Formats



Representation

An IPv4 address is a 32-bit number, typically represented in dotted decimal format. This format consists of four decimal numbers separated by dots, where each number ranges from 0 to 255. For example:
192.168.1.1
Each decimal number represents 8 bits (one byte), so the entire IPv4 address is composed of 4 bytes.

IP Address Classes

IPv4 addresses are divided into five classes: A, B, C, D, and E.
classStart addressEnd addressDefault subnet mask
A1.0.0.0127.255.255.255255.0.0.0
B128.0.0.0191.255.255.255255.255.0.0
C192.0.0.0223.255.255.255255.255.255.0
D224.0.0.0239.255.255.255-
E240.0.0.0255.255.255.255-

Reserved IP Addresses

Certain IPv4 addresses are reserved for specific purposes and cannot be used as regular host addresses. These reserved addresses include:
Reserved IP AddressesStart addressEnd addresspurposes
Private IP Addresses (Class A)10.0.0.010.255.255.255Used within local area networks (LANs) and not routable on the internet
Private IP Addresses (Class B)172.16.0.0 172.31.255.255Used within local area networks (LANs) and not routable on the internet
Private IP Addresses (Class C)192.168.0.0192.168.255.255Used within local area networks (LANs) and not routable on the internet
Loopback Addresses127.0.0.0 127.255.255.255Used for testing and communication within the local host, typically 127.0.0.1