You can upload your list of UniProtKB identifiers to the UniProt Batch retrieval service at https://www.uniprot.org/id-mapping
Select to map from UniProtKB to UniProtKB.
Once you have your results, click on "Download", select tsv (tab-separated) format and choose the columns you would like to see in your table. There are options for GO terms, GO IDs, or GO terms separated by ontology (molecular function, biological process, cellular component).
Please don't hesitate to contact the UniProt helpdesk if you have any questions on how to use this service.