Question: what episode does jon snow know he's a targaryen?
Answer: The season 7 finale episode "The Dragon and the Wolf" confirmed that Jon is indeed the legitimate son of Rhaegar and Lyanna, and that his birth name is actually Aegon Targaryen.