Zachary Adam Gordon (born February 15, 1998) is an American actor. Beginning his professional acting career at the age of eight, Gordon is a three time Young Artist Award Best Leading Young Actor nominee, best known for playing Greg Heffley in the first three films of the Diary of a Wimpy Kid film franchise, which are based on Jeff Kinney's #1 New York Times best seller novel series, Diary of a Wimpy Kid.
Gordon was born in Oak Park, California, to Linda and Kenneth Gordon. He has two brothers, Joshua and Kyle, and was raised in Southern California. Zach graduated from a public high school in Oak Park
Gordon's resumé includes multiple television appearances, on programs such as How I Met Your Mother and All of Us. He has also appeared in the 2008 opening of Desperate Housewives, plus two other episodes, and in two episodes of 24, which aired in January 2009. He also appeared in three episodes (2014) as a guest star on Tim Allen's sitcom, where he played Tim's daughter's boyfriend.