The eight include former state Sen. Mark Leno, acting Mayor London Breed, Supervisor Jane Kim and former Supervisor Angela Alioto. There are also four lesser-known candidates.
Eighteen others who had requested paperwork to run for mayor did not return candidacy papers before Tuesday's 5 p.m. deadline.
Mayor Ed Lee died suddenly of a heart attack in December, prompting officials to move up the date of an election that was not expected to happen until November 2019.
The person who wins in June will serve out the rest of Lee's term and can run in November 2019 for another four-year term.
CapRadio provides a trusted source of news because of you. As a nonprofit organization, donations from people like you sustain the journalism that allows us to discover stories that are important to our audience. If you believe in what we do and support our mission, please donate today.