SHP is several files, limits field names to 10 characters and is not web-friendly. KML opens in Google Earth and Google My Maps. SHP is at home in exchanging vector map layers between GIS programs; KML is the usual choice for places, routes and tours viewed in Google Earth.
Every format is read into plain GeoJSON features and written out from there, so coordinates, names and properties carry over wherever the target has a place for them. A zipped shapefile (the .shp with its .dbf and .shx) or a bare .shp is read. If a .prj file names the coordinate system, coordinates are converted to latitude and longitude; a coordinate system that cannot be read is refused. Altitude and per-point timestamps are kept; a line with timestamps is written as a Google Earth track that can be played back. Coordinates outside the latitude and longitude range are refused, since the file is probably in a projected coordinate system.