| Movie | 2021 | A Night at the Academy Museum | Self | |
| Movie | 2021 | Eternals | Kingo | |
| Movie | 2023 | Money Shot: The Pornhub Story | Self (archive footage) (uncredited) | |
| Movie | 2024 | Ghostbusters: Frozen Empire | Nadeem | |
| Movie | 2020 | Graduate Together: America Honors the High School Class of 2020 | Self | |
| Movie | 2023 | Migration | Mack Mallard (voice) | |
| Movie | N/A | Thread: An Insidious Tale | | |
| Movie | 2022 | Marvel Studios Assembled: The Making of Eternals | Self - Kingo | |
| Movie | 2013 | The Kings of Summer | Gary | |
| Movie | 2023 | Attack of the Doc! | Self | |
| Movie | 2013 | Kumail Nanjiani: Beta Male | Himself | |
| Movie | 2014 | Loaded | Raza | |
| Movie | 2025 | Ella McCay | Trooper Nash | |
| Movie | 2016 | Brother Nature | Riggleman | |
| Movie | 2018 | Poop Talk | Self | |
| Movie | 2013 | The Arrangement | Alfred Dalton | |
| Movie | 2014 | Sex Tape | Punit | |
| Movie | 2022 | Obi-Wan Kenobi: A Jedi's Return | Self - Haja Estree | |
| Movie | 2015 | Misery Loves Comedy | Self | |
| Movie | 2024 | Destroy All Neighbors | Smelting Refinery Guard | |
| Movie | 2015 | Hello, My Name Is Doris | Nasir | |
| Movie | 2015 | Hot Tub Time Machine 2 | Brad Syed | |
| Movie | 2015 | Flock of Dudes | Ro | |
| Movie | 2015 | Hell and Back | Dave the Demon (voice) | |
| Movie | 2013 | Timms Valley | Arjit Pondicherry | |
| Movie | 2013 | Hell Baby | Cable Guy | |
| Movie | 2016 | Central Intelligence | Jared the Airport Security Guard | |
| Movie | 2017 | The Lego Ninjago Movie | Jay (voice) | |
| Movie | 2016 | Mike and Dave Need Wedding Dates | Keanu | |
| Movie | 2016 | The Late Bloomer | Rich | |
| Movie | 2017 | The Big Sick | Kumail Nanjiani | |
| Movie | 2017 | Fist Fight | Officer Mehar | |
| Movie | 2013 | Bad Milo! | Bobbi | |
| Movie | 2012 | The Five-Year Engagement | Pakistani Chef | |
| Movie | 2018 | Duck Butter | Jake | |
| Movie | 2018 | Seth Rogen's Hilarity for Charity | Self | |
| Movie | 2019 | Stuber | Stu Prasad | |
| Movie | 2017 | A Happening of Monumental Proportions | Perry | |
| Movie | 2020 | The Lovebirds | Jibran | |
| Movie | 2019 | Men in Black: International | Pawny (voice) | |
| Movie | 2019 | It Started As a Joke | Self | |
| Movie | 2019 | Celebrating Marvel's Stan Lee | Self | |
| Movie | 2014 | The Last of the Great Romantics | George the Counter Guy | |
| Movie | 2020 | Dolittle | Plimpton (voice) | |
| Movie | N/A | Any Person, Living Or Dead | | |
| Movie | 2010 | Life As We Know It | Simon | |
| Movie | 2020 | Death to 2020 | Bark Multiverse | |
| Movie | 2015 | Addicted to Fresno | Damon | |
| Movie | 2021 | Roll Up Your Sleeves | Self | |
| Movie | 2010 | Reggie Watts: Why Shit So Crazy? | | |
| Movie | 2025 | Is / Was \ Will | | |
| Movie | N/A | The Wrong Girls | | |
| Movie | 2025 | Driver's Ed | Mr. Rivers | |
| Movie | 2026 | The Breadwinner | | |
| Movie | 2025 | Kumail Nanjiani: Night Thoughts | Self | |
| Movie | N/A | Compulsive Liar | Simon | |
| Movie | 2023 | Obi-Wan Kenobi - The Patterson Cut | Haja Estree | |
| TV Show | 2019 | Bless the Harts | Jesus (voice) | 4 |
| TV Show | 2015 | The Late Late Show with James Corden | Self | 2 |
| TV Show | 2003 | Jimmy Kimmel Live! | Self - Guest | 4 |
| TV Show | 2012 | Burning Love | Zakir | 14 |
| TV Show | 2014 | Silicon Valley | Dinesh Chugtai | 53 |
| TV Show | 2022 | Welcome to Chippendales | Somen 'Steve' Banerjee | 8 |
| TV Show | 1975 | Saturday Night Live | Self - Cameo (uncredited) | 1 |
| TV Show | 2011 | Franklin & Bash | Pindar Singh | 31 |
| TV Show | 2009 | Community | Lapari | 2 |
| TV Show | 2010 | Ugly Americans | Neilando Patel (voice) | 1 |
| TV Show | 2012 | Bunk | | 3 |
| TV Show | 2014 | The Tonight Show Starring Jimmy Fallon | Self - Guest | 1 |
| TV Show | 2014 | The Meltdown with Jonah and Kumail | Self | 24 |
| TV Show | 1988 | LIVE with Kelly and Mark | Self | 2 |
| TV Show | 2003 | The Ellen DeGeneres Show | Self | 1 |
| TV Show | 2014 | Late Night with Seth Meyers | Self | 4 |
| TV Show | 2017 | Big Mouth | himself (voice) | 1 |
| TV Show | 2023 | Project Greenlight | Self | 10 |
| TV Show | 2014 | Broad City | Benny Calitri | 1 |
| TV Show | 2012 | The Eric Andre Show | Self | 1 |
| TV Show | 2010 | The Green Room with Paul Provenza | Self | 1 |
| TV Show | 2015 | The Late Late Show with James Corden | Self - Guest | 1 |
| TV Show | 2011 | Portlandia | Cell Phone Salesman | 1 |
| TV Show | 2011 | Portlandia | Birthday Loan Officer | 1 |
| TV Show | 2011 | Portlandia | Human Bandwidth Manager | 1 |
| TV Show | 2022 | Murderville | Kumail Nanjiani | 1 |
| TV Show | 2011 | Portlandia | Denim Salesman | 1 |
| TV Show | 2014 | Last Week Tonight with John Oliver | Self | 2 |
| TV Show | 2014 | Penn Zero: Part-Time Hero | Cute-ling Mayor (voice) | 1 |
| TV Show | 2016 | Chelsea | Self | 1 |
| TV Show | 2022 | The Boys Presents: Diabolical | Vik (voice) | 1 |
| TV Show | 2022 | Obi-Wan Kenobi | Haja Estree | 3 |
| TV Show | 1989 | The Simpsons | Theo (voice) | 1 |
| TV Show | 2011 | Bob's Burgers | Skip Marooch (voice) | 1 |
| TV Show | 2016 | HarmonQuest | Eddie Lizzard | 1 |
| TV Show | 2011 | Bob's Burgers | Skip (voice) | 1 |
| TV Show | 2022 | The Jennifer Hudson Show | Self | 2 |
| TV Show | 2019 | The Kelly Clarkson Show | Self | 2 |
| TV Show | 2014 | TripTank | Dick Genie (voice) | 1 |
| TV Show | 2019 | The Boys | Kumail Nanjiani (uncredited) | 1 |
| TV Show | 2013 | @midnight with Chris Hardwick | Self | 2 |
| TV Show | 1975 | Saturday Night Live | Self - Host | 1 |
| TV Show | 2009 | Watch What Happens Live with Andy Cohen | Self - Guest | 2 |
| TV Show | 2015 | Major Lazer | Thor (voice) | 1 |
| TV Show | 2023 | Krapopolis | Spartan Army Leader (voice) | 1 |
| TV Show | 2019 | The Twilight Zone | Samir Wassan | 1 |
| TV Show | 2011 | Portlandia | SoCal Waiter | 7 |
| TV Show | 2009 | RuPaul's Drag Race | Self - Guest Judge | 1 |
| TV Show | 2012 | Veep | Statistician | 1 |
| TV Show | 1997 | The View | Self | 1 |
| TV Show | 2015 | The Late Show with Stephen Colbert | | 1 |
| TV Show | 1997 | The View | Self - Guest | 1 |
| TV Show | 2013 | The Jeselnik Offensive | Self | 2 |
| TV Show | 2019 | Good Talk with Anthony Jeselnik | Self | 1 |
| TV Show | 2016 | HarmonQuest | Eddie Lizard | 1 |
| TV Show | 2009 | Archer | Farooq Ashkani (voice) | 1 |
| TV Show | 2022 | Bee and PuppyCat | Howell (voice) | 3 |
| TV Show | 2015 | Close Up with The Hollywood Reporter | Self | 2 |
| TV Show | 2013 | Drunk History | Lakota Chief | 1 |
| TV Show | 2020 | Reunited Apart | Self | 1 |
| TV Show | 1993 | The X-Files | Pasha | 1 |
| TV Show | 2015 | Hot Ones | Self | 1 |
| TV Show | 2014 | Off Camera with Sam Jones | Self | 1 |
| TV Show | 2023 | History of the World: Part II | | 1 |
| TV Show | 2015 | The Late Show with Stephen Colbert | Self - Guest | 2 |
| TV Show | 2010 | Adventure Time | Prismo (voice) | 6 |
| TV Show | 2003 | Jimmy Kimmel Live! | Self - Guest Host | 1 |
| TV Show | 2014 | Garfunkel and Oates | Jordan | 1 |
| TV Show | 2010 | Conan | Self | 2 |
| TV Show | 2021 | Only Murders in the Building | Rudy Thurber | 7 |
| TV Show | 2018 | Lie Detector | Self | 1 |
| TV Show | 2009 | Michael & Michael Have Issues | Kumail | 7 |
| TV Show | 2013 | The Last Leg | Self | 1 |
| TV Show | 2014 | Variety Studio: Actors on Actors | Self | 1 |
| TV Show | 2015 | The Grinder | Prosecutor Leonard | 2 |
| TV Show | 2021 | What If...? | Kingo (voice) | 1 |
| TV Show | 2023 | Dr Phil LIVE! | Self | 1 |
| TV Show | 2012 | Key & Peele | College Kid #1 | 1 |
| TV Show | 2024 | After Midnight | Self | 1 |
| TV Show | 2012 | TableTop | Self - Guest | 1 |
| TV Show | 2023 | Poker Face | Joseph 'Gator Joe' Pilson | 1 |
| TV Show | 2024 | Grave Conversations | Self | 1 |
| TV Show | 2000 | Aqua Teen Hunger Force | Bees (voice) | 1 |
| TV Show | 2011 | Bob's Burgers | Skip Marooch | 1 |
| TV Show | 2023 | Adventure Time: Fionna & Cake | Prismo (voice) | 3 |
| TV Show | 2014 | Late Night with Seth Meyers | Self - Guest | 1 |
| TV Show | 2015 | Taskmaster | Self | 0 |
| TV Show | 2026 | The Screener | Parker Harrison | 1 |