Tom and Jerry chase each other while searching for food until Jerry disappears with a group of children who go to Bill's Candy Shop. The shop owner hands out candy to the kids while Tom and Jerry continue their playful chaos inside.
Charlie Bucket, Lincoln Melcher is a poor paperboy who stops Tom from eating Jerry and befriends them by offering them a loaf of bread. While Charlie rushes home to his widowed mother and bedridden grandparents, Tom and Jerry steal a box of Wonka Bars from the shop.
Grandpa Joe, Jess Harnell explains to Charlie that Willy Wonka locked his famous chocolate factory because other candy makers, including rival Slugworth, Mick Wingert sent in spies to steal his recipes. Wonka disappeared for three years before he resumed selling candy; the origin of Wonka's labor force is unknown.
Tom and Jerry arrive at Charlie's home with the Wonka Bars, but Charlie convinces the two that stealing is wrong and they should return the box.
The next day, Wonka announces that he hid five Golden Tickets in five Wonka Bars. Finders of the tickets will receive a factory tour and a lifetime supply of chocolate. Four of the tickets are found by gluttonous Augustus Gloop, Rachel Butera as Augustus Gloop, spoiled Veruca Salt, Emily O'Brien as Veruca Salt, chewing gum-addicted Violet Beauregarde, Dallas Lovato as Violet Beauregarde, and television-obsessed Mike Teavee, Lauren Weisman as Mike Teavee.
As each winner is announced on television, a man whispers to them. Charlie opens one Wonka Bar, but finds no Golden Ticket and loses hope. The newspapers announce the fifth ticket was found by a millionaire in Paraguay named Alberto Minoleta.
Tom and Jerry earn a dollar coin by recycling milk bottles, but lose it in a gutter after fighting over it. Charlie finds the coin and uses it to buy a Wonka Bar for Grandpa Joe. The television news reveals that Minoleta has been arrested for forging his ticket. Charlie opens the Wonka Bar and finds the fifth Golden Ticket. While rushing home, he is confronted by the same man seen whispering to the other winners, who introduces himself as Slugworth and offers to pay for a sample of Wonka's latest creation, the Everlasting Gobstopper.
Charlie returns the candy to Wonka. Wonka declares Charlie the winner. He reveals that Slugworth is really Mr. Wilkinson, an employee of his, and the offer to buy the Gobstopper was a morality test which only Charlie passed.
The trio and Tuffy, Kath Soucie now an official Oompa Loompa, enter the "Wonkavator", a multi-directional glass elevator that flies out of the factory. Tom and Jerry use Fizzy Lifting Drinks to catch up with the Wonkavator. Soaring over the city, Wonka reveals that his actual prize is the factory itself; Wonka created the contest to find a worthy heir and Charlie and his family can immediately move in, including Tom and Jerry. A freed Minoleta follows them as well.