The ammonia smell usually comes from urine, diapers, pet waste, and nitrogen-rich food scraps breaking down in heat. To get it under control, start at the source: bag urine-soaked items and diapers separately, keep liquids and loose food scraps out of the bin, and double-bag anything that is already wet. If you use a liner, choose a sturdy one and replace it often; in shared bins, ask neighbors not to dump loose liquids or organic waste into the container.
Next, empty and scrub the bin. Rinse it out, wash with hot soapy water, and use a vinegar-and-water spray or an enzyme cleaner made for organic waste. Avoid mixing bleach with ammonia or ammonia-based cleaners—it can create dangerous fumes. After washing, dry the bin completely in the sun if possible, and leave the lid open for a while so moisture can escape.
For ongoing odor control, sprinkle baking soda in the bottom, use activated charcoal or a moisture absorber, and keep the lid closed but let the bin breathe when it is empty and dry. Place bins in shade when possible, schedule pickup before waste sits too long, and use smaller or more frequent collections in hot weather. If the smell persists, clean the surrounding ground and lid, check for leaks, and report shared-bin cleaning issues to building management. The goal is less moisture, less urine/ammonia waste, and more airflow—not just masking the smell.