Downy woodpeckers have a diverse diet. They eat insects such as beetles, wood-boring larvae, caterpillars, moths, ants, grasshoppers, flies, wasps, spiders, millipedes, and centipedes. They also eat fruits and berries including elderberries, blueberries, raspberries, apples, pears, sumac, dogwood, serviceberries, and black cherries. Nuts and seeds such as sunflower seeds, peanuts, acorns, beechnuts, and hickory nuts are part of their diet, and they may occasionally drink tree sap in winter.