Yes, you can use an urban planter box for composting kitchen scraps, but it works best as a small-scale system rather than a simple open planter filled with food waste. A planter box is shallow, exposed, and often designed for growing plants, so composting in it requires more management than a dedicated bin. The safest approach is to use a section of the box as an in-ground compost pocket, or to set a lidded compost insert inside the planter so roots and fresh scraps stay separated.
Start by balancing greens and browns. Kitchen scraps are greens; add dry leaves, shredded cardboard, straw, or untreated sawdust as browns. Bury scraps 6–10 inches deep and cover them with browns to reduce odors and flies. Chop larger pieces to speed decomposition. Keep the material as moist as a wrung-out sponge, and turn or aerate it occasionally. Avoid meat, fish, dairy, oily foods, pet waste, and diseased plants unless you use a sealed hot-composting system.
In cities, pests and rules matter. Use a lid or secure cover, avoid leaving scraps on the surface, and check local regulations and building rules. If rodents or odors are a concern, consider bokashi, a worm bin, or a tumbler instead. Also remember that active composting can tie up nutrients and heat near plant roots, so keep fresh scraps away from established plants. With careful layering, moisture control, and pest prevention, an urban planter box can handle modest amounts of kitchen scraps and eventually produce compost for your garden.