Yes—some cities do have public trash cans that separate compost in addition to trash and recycling, but it is still far from standard. You are most likely to see them as three-stream waste stations rather than simple standalone cans: one opening for landfill trash, one for recyclables, and one for food scraps or compostable materials. They tend to appear in cities with strong organics collection programs, high-traffic parks, transit hubs, downtown districts, airports, universities, and farmers markets.
San Francisco is probably the best-known example, since organics collection is well established there. You can also find public compost bins or pilot programs in parts of Seattle, Portland, Toronto, and a number of smaller cities and campuses. In many places, though, public-space composting is still limited because it is harder to manage than residential composting.
The basic idea is simple. The compost stream collects food scraps, napkins, and approved compostable packaging. The recycling stream takes bottles, cans, paper, and cardboard. The trash stream is for everything else. Clear labels, color-coded lids, different opening shapes, and multilingual signs all help people sort correctly. Cities often use separate liners and frequent pickup to control smells, pests, and overflow.
The biggest challenge is contamination. In public spaces, people are in a hurry, and a single wrong item can spoil a load of compost. That is why successful programs usually combine easy-to-understand signage, regular collection, durable bins, and ongoing public education. Wildlife and weather are also issues, so many cities choose weighted lids, smaller openings, and secured liners.
So the short answer is yes: urban compost bins exist, especially in cities with mature organics programs. But if you are looking for one, check for labels like “organics,” “food scraps,” or “compost” alongside trash and recycling. And do not assume every green bin is compost—some are only for yard waste, and some public bins are pilot projects rather than citywide systems.