Dietary diversification is central to improving dietary quality and nutrition. Forests provide access to diverse and nutritionally important foods. We linked forest metrics and food consumption data across five African countries. One additional forest patch per km2 increased the odds of consuming fruits by 3-33%. Food security and nutrition strategies for Africa should also attend to forests.