Wind turbines have created record levels of energy for Scotland.

The National Grid demand for October could have almost been entirely provided by wind power, WWF Scotland said.

The turbines created enough energy to power nearly five million homes in October.

October 23 was the best performing day for the turbines as they generated enough to power nearly nine million homes, according to WWF Scotland analysis of data from WeatherEnergy.

Dr Sam Gardner, acting director at WWF Scotland, said: "What a month October proved to be, with wind powering on average 98% of Scotland's entire electricity demand for the month, and exceeding our total demand for a staggering 16 out of 31 days.

"These figures clearly show wind is working, it's helping reduce our emissions and is the lowest cost form of new power generation.

"It's also popular, with a recent survey also showing more and more people support turbines in rural areas.

"That's why it's essential that the UK Government unlocks market access for onshore wind at a time when we need to be scaling up electrification of heat and transport."

The worst performing day was October 18 when the turbines only generated enough energy to power 1,512,568 homes.

The majority of the turbines were onshore, with offshore ones accounting for 0.3% of output in October.

Alex Wilcox Brooke, weather energy project manager at Severn Wye Energy Agency, said: "October's figures are a prime example of how reliable and consistent wind production can be, with production on 16 days outstripping national demand."