The 31-year-old has signed a two-and-a-half year contract at the New Den after falling out of favour at the Potters.
"Dave has been a great servant to this club and it goes without saying that he goes to Millwall with our best wishes," said Stoke chief executive Tony Scholes.