She is famous for playing the voices of Bart Simpson , Nelson Muntz , Todd Flanders and Ralph Wiggum on the animated television show The Simpsons . She is best known for her long-running role as Bart Simpson on the animated television series The Simpsons . Cartwright voices other characters for the show , including Nelson Muntz , Ralph Wiggum , Todd Flanders , Kearney and Database .