|- ! Year !! Film !! Role !! Notes |- | 1977 | ''Can I Do It 'Till I Need Glasses?'' | | |- | 1980 | ''Popeye'' | Popeye | Film debut |- | 1982 | ''The World According to Garp'' | T.S. Garp | |- | 1983 | ''The Survivors'' | Donald Quinelle | |- | 1984 | ''Moscow on the Hudson'' |Vladimir Ivanov | |- |rowspan="3"| 1986 | ''Seize the Day'' | Tommy Wilhelm | |- | ''Club Paradise'' | Jack Moniker | |- | ''The Best of Times'' | Jack Dundee | |- | 1987 | ''Good Morning, Vietnam'' | Adrian Cronauer | Nominated for an Academy Award. |- |rowspan="2"| 1988 | ''The Adventures of Baron Munchausen'' | King of the Moon | Credited as Ray D. Tutto |- | ''Portrait of a White Marriage'' | Air Conditioning Salesman | Cameo |- |rowspan="2"| 1989 | ''Dead Poets Society'' |John Keating |Williams nominated for Best Actor Oscar. Film won Academy Award for Writing Original Screenplay |- | ''Back to Neverland'' |Vacationer/Lost Boy |Co-starred with Walter Cronkite in this video that used to play at the Disney-MGM Studios's Animation Courtyard theatre. |- |rowspan="2"| 1990 | ''Awakenings'' | Dr. Malcolm Sayer | |- | ''Cadillac Man'' | Joey O'Brien | |- |rowspan="3"| 1991 | ''Hook'' | Peter Pan | |- | ''The Fisher King'' | Parry |Nominated for Best Actor in a Leading Role |- | ''Dead Again'' | Doctor Cozy Carlisle | |- |rowspan="6"| 1992 | ''Toys'' | Leslie Zevo | |- || ''Aladdin'' | Genie | Voice, won a Special Golden Globe for his performance. |- | ''The Timekeeper'' (or ''From Time to Time'' or ''LeVisionarium'') |The Timekeeper | Voice; short subject; this is a former Circle-Vision 360° film at Walt Disney World, Disneyland Paris and Tokyo Disneyland. |- | ''FernGully: The Last Rainforest'' | Batty Koda | Voice |- || ''Shakes the Clown'' | Mime Class Instructor | |- || ''I'm From Hollywood'' | | Documentary |- |rowspan="2"| 1993 | ''Mrs. Doubtfire'' | Daniel Hillard / Mrs. Doubtfire | Also producer |- | ''Being Human'' | Hector | |- | 1994 |''In Search of Dr. Seuss'' | Father | |- |rowspan="4"| 1995 | ''Aladdin and the King of Thieves'' | Genie | Voice; Direct to Video |- | ''Jumanji'' | Alan Parrish | |- | ''To Wong Foo, Thanks for Everything! Julie Newmar'' | John Jacob Jingleheimer Schmidt | Cameo (uncredited) |- | ''Nine Months'' | Dr. Kosevich | |- |rowspan="4"| 1996 | ''Hamlet'' | Osric | |- | ''The Secret Agent'' | The Professor | |- | ''Jack'' | Jack Powell | |- | ''The Birdcage'' | Armand Goldman | |- |rowspan="4"| 1997 | ''Good Will Hunting'' | Sean Maguire | Academy Award for Best Supporting Actor |- | ''Flubber'' | Professor Philip Brainard | |- | ''Deconstructing Harry'' | Mel/Harry's Character | |- | ''Fathers' Day'' | Dale Putley | |- |rowspan="3"| 1998 | ''Patch Adams'' | Hunter "Patch" Adams | |- || ''Junket Whore'' | | Documentary |- || ''What Dreams May Come'' | Chris Nielsen | |- |rowspan="3"| 1999 | ''Bicentennial Man'' | Andrew Martin | |-fag | ''Jakob the Liar'' | Jakob Heym/Narrator | Also executive producer |- | ''Get Bruce'' | | Documentary |- | 2001 | ''A.I.: Artificial Intelligence'' | Dr. Know | Voice |- |rowspan="4"| 2002 | ''The Rutles 2: Can't Buy Me Lunch'' | | Cameo |- | ''Insomnia'' | Walter Finch | |- | ''Death to Smoochy'' | 'Rainbow' Randolph Smiley | |- | ''One Hour Photo'' | Sy Parrish | |- |rowspan="3"| 2004 | ''Noel'' | Charlie Boyd/The Priest | Uncredited |- || ''House of D'' | Pappass | |- |''The Final Cut'' | Alan W. Hakman | |- |rowspan="4"| 2005 | ''In Search of Ted Demme'' | | |- | ''The Big White'' | Paul Barnell | |- |''Robots'' | Fender | Voice |- | ''The Aristocrats'' | | Documentary |- |rowspan="7"| 2006 |- | ''Night at the Museum'' | Teddy Roosevelt | |- | ''Man of the Year'' | Tom Dobbs | |- | ''Happy Feet'' | Ramon/Lovelace | Voice |- | ''Everyone's Hero'' | Napoleon Cross | Voice (uncredited) |- |''RV'' | Bob Munro | |- | ''The Night Listener'' |Gabriel Noone | |- |rowspan="2"| 2007 | ''License to Wed'' | Father Frank | |- |''August Rush'' | Wizard | Post-production | |- |rowspan="2"| 2008 |''Old Dogs'' | | Pre-production |- |''The Krazees'' | | in production |