The fast-food giant, which has a global annual revenue of £10.5bn, has agreed to redesign the packaging for its McFlurry ice cream after years of lobbying by the charity, whose annual income is £126,000.
The society argued that the packaging was a deathtrap for sweet-toothed hedgehogs, which would find their way into dumped cartons to lick up any leftover ice cream and then find themselves stuck. The creatures would then suffer a slow death through dehydration and starvation, or become easy prey for predators.
McDonald's has now pledged to reduce the size of the hole in the container lids to make them too small for hedgehogs to get into.
"This is excellent news, and long overdue," said Fay Vass, chief executive of the BHPS. "We have been in touch with McDonald's about this problem for more than five years. We are delighted it has finally solved it."