Magento 2- How to get Country name using Country code

Magento 2 – How to get Country name using Country code- by Divyanshu Rohatgi

Copy this code in your controller or phtml file-


$country_name =$objectManager->create('\Magento\Directory\Model\Country')->load('COUNTRY_CODE')->getName();

For example –


$country_name =$objectManager->create('\Magento\Directory\Model\Country')->load('US')->getName();