San Francisco Zip Codes: What You Actually Need To Know
Most people think San Francisco has fewer zip codes than it does. The city-and-county is compact, so you'd expect maybe six or seven, but there are actually over twenty distinct postal codes covering different neighborhoods, PO Box streams, and special delivery routes. If you're filling out forms or setting up shipping zones, the mismatch between what you expect and what the USPS recognizes causes problems faster than you'd think. The standard format is straightforward — five digits for the basic area, optionally followed by a hyphen and four digits for the exact delivery point. San Francisco starts with 941 for most residential and commercial addresses downtown and in the central neighborhoods. But the 941 prefix continues into the 941xx range across the city, and then there are entirely separate series for high-volume receivers and institutional mail.
Unlock The Secrets Of San Francisco Zip Codes A Complete Guide
Here's the thing nobody puts in a summary table: the nine-hundred-forty-one series isn't one uniform block. The numbers distribute geographically but not in the simple left-to-right way you might assume. 94102 covers the Tenderloin and Civic Center area. 94103 is the SoMa district, stretching from the Mission Bay development up to the highway. 94105 is the South Beach and Pier area, which overlaps with 94107 further south around Potrero Hill. The boundaries aren't drawn on a clean grid, and they don't follow neighborhood names exactly. When I was running a logistics operation for a small e-commerce business a few years back, I learned this the hard way. We had a warehouse in the 94107 area and were using zip code ranges to calculate shipping tiers. A customer lived at an address that sat right on the boundary between 94107 and 94110. Our system classified it as 94107 because that's what the address validation returned, but the actual postal delivery route for that street ran through 94110. For a while, the package was being sorted into the wrong routing bin. The fix was to cross-reference with the USPS Delivery Point Validation API rather than trusting the five-digit code alone. It added about forty-five seconds to each address lookup but eliminated the misrouted shipments entirely. The full list of San Francisco zip codes runs longer than most people expect. Here are the ones that matter for general use:
94102 — Civic Center, Tenderloin
94103 — SoMa, Mission Bay
94104 — Financial District
94105 — South Beach, Exploratorium area
94107 — Potrero Hill, Dogpatch
94108 — Chinatown, Nob Hill
94109 — West of Market, Lower Haight
94110 — Mission District
94111 — Financial District, Battery Street corridor
94112 — Visitacion Valley, Excelsior, Visitacion Valley
94114 — Castro, Noe Valley
94115 — Pacific Heights, Ashley
94116 — Parkside, Sunset adjacent
94117 — Haight-Ashbury, Cole Valley
94118 — Richmond, Presidio adjacent
94121 — Richmond District
94122 — Sunset District
94123 — Marina District, Cow Hollow
94124 — Mission Bay, Bayview-Hunters Point
94127 — Forest Hill, St. Francis Wood
94131 — Presidio Heights
94132 — Balboa Terrace
94134 — Daly City border area, sometimes listed for SF
94158 — Mission Bay tech campus addresses There are also specialized codes. 94188 is the Presidio, which operates as a federal zone with its own mail handling. 94199 is the general USPS post office box stream for downtown locations. 94101 and 94103 are used for P.O. boxes at specific facilities and don't correspond to residential street addresses.
Get the Full Details

How The 941xx System Actually Works
ZIP codes in San Francisco follow the same national structure as everywhere else, but the city's density means the codes compress into a smaller geographic footprint than you see in other major cities. In a place like Los Angeles, each zip code might cover several square miles. In San Francisco, 94110 (Mission) and 94114 (Castro/Noe Valley) sit next to each other with populations that could support entire midwestern towns. The secondary four-digit extension — the ZIP+4 — pinpoints a specific delivery segment. A single block in the Mission might have its own +4 code. This matters if you're doing direct mail or any kind of targeted postal campaign. Using just the five-digit code means your piece enters the general sorting stream for that area and gets distributed later. With the full eleven digits, it gets placed on the carrier's route in the exact order the mail carrier will walk it. That's not a convenience, it's how the USPS optimizes delivery routes, and it's free to use if you have the data. One counter-intuitive detail: some addresses in the San Francisco area actually have zip codes that start with 940 or 944. These belong to adjacent jurisdictions like South San Francisco or Brisbane, but the USPS sometimes routes them through San Francisco processing centers. If you're building an address validation system, don't assume a 941 prefix means the address is inside the city limits. Check the actual municipal boundary.
Common Mistakes People Make
The biggest error is assuming zip code maps are static. San Francisco has been reconfiguring neighborhoods and developing new areas for decades. Mission Bay didn't exist as a residential area twenty years ago, and the zip codes attached to it — 94103's southern extension and 94158 — shifted as construction progressed. Addresses that were valid in one code five years ago might now sort through a different facility. Another issue is the PO Box problem. A business might use a downtown P.O. box at 94111, but their actual street address is in 94105. These are different zip codes serving different physical areas. Mailing lists that only capture the PO Box code will misrepresent where the business actually operates, and reverse-geocoding those addresses will place them in the wrong neighborhood entirely. If you need accuracy for delivery, tax calculation, or demographic analysis, don't rely on a static spreadsheet. Use the USPS Carrier Route File, which breaks each zip code down into individual routes. It's downloadable from the USPS website in plain text format, updated quarterly, and it tells you exactly which blocks and addresses fall on which routes. The file is large — about four hundred thousand lines for San Francisco alone — but parsing it takes a few minutes and gives you precision that five-digit lookups can't match.
For most everyday purposes, knowing the five-digit code and understanding that neighborhood names don't always align with postal boundaries is sufficient. The system works well enough that the USPS moves roughly sixty million pieces of mail per year through San Francisco facilities without collapsing, which says something about the infrastructure underneath the complexity.
