That's a great question, and one that plagues a lot of city dwellers! Birds, especially clever ones like crows, pigeons, and seagulls, can make a real mess. From my experience and talking with local sanitation crews, here’s what actually works.
First, the golden rule is never to leave bags outside the can. That’s an open invitation. Always use a can with a secure, tight-fitting lid. The best lids are those that are hinged and close automatically, or have a latch. For cans without good lids, a simple and cheap fix is a bungee cord or elastic net stretched over the top. It creates a physical barrier that's easy for you to remove but tricky for birds.
For persistent problems, look into specialized bird-proof trash cans. Many cities now supply or recommend cans with locking lids or designs that require a hand to lift (like a pedal), which birds can't operate. Another pro tip is to use a weighted lid or add a brick on top if it's safe to do so.
Maintenance is key. Clean your bins regularly with a vinegar or mild bleach solution to remove food residue and smells that attract birds. Try to schedule your trash disposal for as close to pickup time as possible, so the attractants aren't sitting out for long.
Finally, consider the placement. If possible, keep your cans in a shaded, sheltered spot away from fences or low roofs where birds like to perch and scout. It’s all about making your trash can the least convenient and rewarding option on the block. It takes a bit of consistency, but these methods are humane and effective for keeping the neighborhood cleaner.