San Francisco International (SFO) is approximately 25 miles north and San Jose International (SJC) approximately 20 miles south of Stanford. Both airports offer public transport, shuttle and hire car options that will get you here.
Oakland International (OAK) is also an option but is further from campus and can be more difficult to travel to/from using public transport and shuttles.
From San Francisco
By car, Stanford is approximately 1 hour from downtown San Francisco. You can take the 101 South (shorter but often busier) or the 280 South.
From San Francisco International (SFO)
From San Jose
By car, Stanford is approximately 40 minutes from downtown San Jose. You can take the 101 North (shorter but often busier) or the 280 North.
From San Jose International (SJC)
Please see the general bicycle routes around the main campus. Parking for bicycles will be located at Gates 5 and 6 near the Stanford Stadium on Commencement Sunday.