Plastic expansion anchors are suitable for lightweight shelves, while metal toggle bolts or molly bolts work best for heavy-duty shelving. If mounting into studs, screws may be sufficient without additional anchors. Always choose anchors rated for the weight of the shelf and its intended contents.