You can upgrade your licenses for free if you have active Support and Subscription contract. You can do this in advanced even you don't plan to upgrade your infrastructure.
Howere you wish to upgrade ESXi hosts - check harfware compatiblity list to see if your hosts are compatible with ESXi 6.x versions. And your storage hw must be supported as well and 3rd party software you use (like backup \ monitoring software).