The main difference between IPv4 and IPv6 is the address format and the number of available addresses. IPv4 addresses use a 32-bit format and have a limited number of addresses, while IPv6 addresses use a 128-bit format and provide a significantly larger address space.