| Year | Title | Role | Notes |
| 1994 | Dead at 21 | Dan Bird | Episode: "Pilot" |
| 1994–1995 | Boy Meets World | Band Member / Griff Hawkins | 4 episodes |
| 1995 | ER | David Kerstetter | Episode: "Full Moon, Saturday Night" |
| 1995 | Murder One | Sydney Schneider | 6 episodes |
| 1996 | NYPD Blue | Gordon Puterbaugh | Episode: "The Nutty Confessor" |
| 1996 | High Incident | Walter Gonning Jr. | Episode: "Change Partners" |
| 1997 | Payback | Adam Stanfill | Television film |
| 1998–1999 | Party of Five | Josh Macon | 7 episodes |
| 1999 | Wasteland | Phillip, The Coffee Boy | 7 episodes |
| 1999 | Sagamore | Alex | Television film |
| 2002 | Glory Days | Howard Dichotsky | Episode: "Everybody Loves Rudy" |
| 2002 | Six Feet Under | Ben Cooper | 2 episodes |
| 2004 | CSI: Miami | Danny Cato | Episode: "Stalkerazzi" |
| 2005 | Veronica Mars | Chuck Rooks | Episode: "Mars vs. Mars" |
| 2005 | Kathy Griffin: My Life on the D-List | Himself | Episode: "Hot to Tot" |
| 2006 | Law & Order | Robbie Howell | Episode: "America, Inc." |
| 2007 | Tell Me You Love Me | Palek | 10 episodes |
| 2009 | Trust Me | Josh Burkett | 2 episodes |
| 2009–2010 | Eastbound & Down | Pat Anderson | 2 episodes |
| 2009–2010, 2023 | Party Down | Henry Pollard | 26 episodes; also executive producer |
| 2010 | The Sarah Silverman Program | Agent Schroeder | Episode: "Just Breve" |
| 2010 | Childrens Hospital | Lieutenant D'Ghor Koru | Episode: "Joke Overload" |
| 2010 | Nick Swardson's Pretend Time | News Anchor | Episode: "Mudslide Junction" |
| 2010 | The Wonderful Maladys | Alice's Ex-Boyfriend | Pilot |
| 2010 | American Dad! | Marshall | VoiceEpisode: "The People vs. Martin Sugar" |
| 2010–2015, 2020 | Parks and Recreation | Ben Wyatt | 98 episodesDirected episode: "Farmers Market" |
| 2011 | Funny or Die Presents | Narrator | Episode |
| 2011 | NTSF:SD:SUV:: | Van Damm | Episode: "The Risky Business of Being Alone in Your Home" |
| 2012–2013 | Burning Love | Damien Assante | 6 episodes |
| 2012–2014 | The Greatest Event in Television History | Himself | 4 episodes; also creator, director and executive producer |
| 2012–2016 | Comedy Bang! Bang! | Himself / Plumber Pierre | 4 episodes |
| 2013 | Robot Chicken | Care Bear / Father | VoiceEpisode: "Botched Jewel Heist" |
| 2013 | Maron | Himself | Episode: "Mexican Angel" |
| 2013 | Drunk History | John Wilkes Booth | Episode: "Washington D.C." |
| 2013 | Timms Valley | US Marshal Lonny | VoicePilot |
| 2016 | Angie Tribeca | Surgeon | Episode: "The Wedding Planner Did It" |
| 2016 | Animals. | Shane | VoiceEpisode: "Cats." |
| 2016 | Bajillion Dollar Propertie$ | Johnny Dunne | Episode: "Meet Platinum" |
| 2016 | The Adult Swim Golf Classic | Adam Scott | TV special |
| 2016–2018 | The Good Place | Trevor | 5 episodes |
| 2017 | Michael Bolton's Big, Sexy Valentine's Day Special | Himself | Variety special |
| 2017, 2019 | Big Little Lies | Ed MacKenzie | 14 episodes |
| 2017 | Veep | Tonight Show Host | Episode: "A Woman First" |
| 2017 | Wet Hot American Summer: Ten Years Later | Ben | 7 episodes |
| 2017–2018 | Ghosted | Max Jennifer | 16 episodes; also executive producer |
| 2017 | Do You Want to See a Dead Body? | Himself | Episode: "A Body and a Puddle" |
| 2018 | I Love You, America with Sarah Silverman | George Washington | Episode: "Hall of Presidents" |
| 2019 | I'm Sorry | Dr. Steve Goldberg | Episode: "These Are My Fingers" |
| 2019 | The Twilight Zone | Justin Sanderson | Episode: "Nightmare at 30,000 Feet" |