Google Maps – Is there an API to translate the names of cities in longitude and latitude?

I have city names in my database, and I would like to get these latitude / longitude to insert into Google Maps. My question is:

Is there a website / package that provides such a service to convert city names into longitude and latitude?

If so, it would be appropriate if you can share the link.

Many Thanks.