Knoxlyn is an unincorporated community situated in Highland Township in Adams County, Pennsylvania, United States. It is located west of Gettysburg between U.S. Route 30 and Pennsylvania Route 116.