In Tim Burton's Alice in Wonderland (2010), the Mad Hatter (Johnny Depp) does not get beheaded. He survives the film, aiding Alice throughout her journey. The movie takes liberties with the source material, portraying him as a tragic but heroic figure with a expanded backstory and emotional depth.
The "Off with his head!" threat looms from the Red Queen, but the Hatter escapes execution—unlike some of his literary counterparts.