The chemical reactions and pathways resulting in the formation of platelet activating factor, 1-O-alkyl-2-acetyl-sn-glycerol 3-phosphocholine, where alkyl = hexadecyl or octadecyl. Platelet activating factor is an inflammatory mediator released from a variety of cells in response to various stimuli.