| Year | Title | Role | Notes |
| 1986 | Highway to Heaven | Rolf Baldt | Episode: "The Torch" |
| Stingray | Eric Murray | Episode: "Below the Line" |
| The Twilight Zone | Tim Conrad | Episode: "What Are Friends For?" |
| 1988 | Necessary Parties | Chris Mills | Movie |
| The Wonder Years | Brad Gaines | Episode: "Dance with Me" |
| Punky Brewster | Walker Wimbley | Episode: "One Plus Tutor Is Three" |
| Charles in Charge | Philip | Episode: "Runaround Charles" |
| 1988–89 | Good Morning, Miss Bliss | Zack Morris | Lead role (13 episodes) |
| 1989–93 | Saved by the Bell | Lead role (86 episodes) |
| 1990 | Murphy Brown | Wes | Episode: "I Want My FYI" |
| 1992 | Saved by the Bell: Hawaiian Style | Zack Morris | Movie |
| Blossom | Kevin | Episode: "Losing Your... Religion" |
| 1993–94 | Saved by the Bell: The College Years | Zack Morris | Lead role (19 episodes) |
| 1994 | For the Love of Nancy | Tommy Walsh | Movie |
| Saved by the Bell: Wedding in Las Vegas | Zack Morris | Movie |
| Saved by the Bell: The New Class | Episode: "Goodbye Bayside" |
| 1996 | Brothers of the Frontier | Hiram Holcomb | Movie |
| She Cried No | Scott Baker | Movie; also known as Freshman Fall |
| 1997 | Dying to Belong | Steven Tyler | Movie |
| Born Into Exile | Chris | Movie |
| 1998–99 | Hyperion Bay | Dennis Sweeny | Main role (17 episodes) |
| 2000 | D.C. | Pete Komisky | Main role (7 episodes) |
| 2001 | The Princess and the Marine | Jason Johnson | Movie |
| Beer Money | Tim Maroon | Movie |
| Law & Order: Special Victims Unit | Wesley Jansen / Peter Ivanhoe | Episode: "Sacrifice" |
| 2001–05 | NYPD Blue | Det. John Clark Jr. | Main role (87 episodes) |
| 2002 | Alikes | Chris | Movie |
| Atomic Twister | Deputy Jake Hannah | Movie |
| Hitched | Michael | Unsold pilot |
| 2005 | Over There | John Moffet | 2 episodes |
| 2005–06 | Commander in Chief | Richard 'Dickie' McDonald | Recurring role (10 episodes) |
| 2006 | The House Next Door | Kim | Movie |
| 2007 | Law Dogs | Evan Marlowe | Unsold pilot |
| John from Cincinnati | Jake Ferris | 3 episodes |
| 2008 | Robot Chicken | Zack Morris / Improv Employee (voice) | Episode: "Boo Cocky" |
| 2008–09 | Raising the Bar | Jerry Kellerman | Main role (25 episodes) |
| 2010 | Rizzoli & Isles | Garrett Fairfield | Episode: "Money For Nothing" |
| Weeds | Jack | Episode: "Gentle Puppies" |
| 2011–14 | Franklin & Bash | Peter Bash | Lead role (40 episodes), also directed episode: "Honor Thy Mother" |
| 2011 | 12 Dates of Christmas | Miles Dufine | Movie |
| 2012 | Don't Trust the B---- in Apartment 23 | Himself | Episode: "A Reunion" |
| 2013 | Men at Work | Tim | Episode: "Weekend at PJ's" (uncredited) |
| Happy Endings | Chase | Episodes: "The Ex Factor", "Un-sabotagable" |
| 2014 | Flipping Out | Himself | Episode: "Due Date" |
| 2014–15 | CSI: Crime Scene Investigation | Jared Briscoe / Paul Winthrop | Recurring roles (4 episodes) |
| 2015 | Truth Be Told | Mitch | Main role (10 episodes) |
| 2016 | Pitch | Mike Lawson | Main role (10 episodes) |
| Dinner at Tiffani's | Himself | Episode: "Christmas at Tiffani's" |
| Celebrity Name Game | Himself | |