A winning ticket for the $768.4 million Powerball jackpot has been bought in Wisconsin.

Powerball said the ticket matched all six numbers and the Powerball. The white balls were 16, 20, 37, 44, 62, and the Powerball was 12.

It's the third-largest win in US history — after the $1.6 billion won in January 2016 and the $1.5 billion Mega Millions jackpot won last October.

Upon cashing in, the winner will be able to choose a one-off $477 million lump sum or $768.4 million in 30 installments over 29 years.

A winning Powerball ticket worth $768.4 million has been bought in Wisconsin, making the lucky ticket holder the winner of the third-biggest jackpot ever won in the US.

Powerball said the ticket matched all six numbers from Wednesday night's draw. The white balls were 16, 20, 37, 44, 62, and the Powerball was 12.

Upon coming forward, the winner can choose a $768.4 million prize paid out in 30 annual installments over 29 years or get a one-off lump-sum payment of $477 million.

A lottery slip for the Powerball. Steve Helber/AP

The win is the third-biggest in US lottery history after the $1.586 billion shared by winners in California, Florida, and Tennessee in January 2016 and a $1.537 billion Mega Millions jackpot won in South Carolina last October.

Read more: How to win the lottery, according to a Romanian-born mathematician who hacked the system, won 14 times, and retired on a remote tropical island

"It's going to be a very green spring for our first Powerball jackpot winner(s) of 2019," said David Barden, the Powerball Product Group chairman.