TOKYO, Nov 29 (Reuters) - Toyota and two affiliates will divest at least 8% of supplier Denso, the companies said on Wednesday, a $4 billion deal that sparked investor hopes the world's top-selling automaker will shed more of its numerous cross-shareholdings.

The share sale, which was first reported by Reuters on Tuesday, will be Japan's second biggest this year and the largest in the global auto industry in more than a decade, according to LSEG data.

Denso, the world's second-largest maker of automotive components and a pillar of the Toyota group, will buy back some of its own shares in the open market to lessen the impact of the sale.

For investors, the deal has reinforced expectations that Japan's most influential company could accelerate sales of shareholdings in affiliates and partners, a practice known as cross-shareholding. Investors, particularly foreign ones, say it hinders governance and hampers returns.

Companies have been slowly unwinding the holdings for years, but the trend gained momentum after the Tokyo Stock Exchange in March urged companies to make better use of their capital.

"We know it's going to free up some of the capital being locked within the Toyota balance sheet. What's important is how they're going to utilise this freed-up capital going forward," said James Hong, the head of mobility research at Macquarie.

Denso said Toyota and two group companies, Toyota Industries and Aisin, would sell their shares in the company to investors. They intend to sell some 256 million shares, worth 589.1 billion yen ($4 billion) at Wednesday's closing share price, representing some 8% of Denso.

That does not include an option known as an overallotment, which would allow the sale of additional shares to take the stake to more than 9%.

Separately, Denso said it would buy back some 125 million shares on the open market, as it looks to offset the market impact of the sale. Denso shares closed up 0.9% on Wednesday, having lost 4.9% a day earlier after Reuters first reported the news. ($1 = 147.2400 yen) (Reporting by Daniel Leussink; additional reporting by Mariko Katsumura and Maki Shiraki; Editing by David Dolan and Barbara Lewis)