How to calculate IPv6 equivalent of IPv4 and vice-versa?

Internet Protocol Version 6 (IPv6) is used everywhere these days. It is working along with IPv4 on some devices and configuration. Just curious to know if there some way to convert IPv4 equivalent of IPv6 and vice-versa? Any help on this subject is welcome.