Jim Halpert is a fictional character in the U.S. version of the television sitcom The Office (U.S. TV series). He is played by actor John Krasinski. His character serves as the intelligent, mild-mannered straight man role to Michael Scott.