Bulk Option List Population

I wanted to pre-populate a countries list and a dial code list.

Is there a way to add items to an option select list other than manually adding each item? If not does any one have a bric with a list of countries and dial codes they’s share?

Ideally I’d like to be able to copy past a list into the option select as I have these in CSV format already.