Google's Geocoding API does just that.
Example:
https://maps.googleapis.com/maps/api/geocode/json?address=Berlin&sensor=falseExample:
https://maps.googleapis.com/maps/api/geocode/json?address=Berlin&sensor=false