Middleburg is a borough located in Snyder County, Pennsylvania. Middleburg has a 2026 population of 1,314. It is also the county seat of Snyder County. Middleburg is currently declining at a rate of -0.38% annually and its population has decreased by -0.83% since the most recent census, which recorded a population of 1,325 in 2020.