"It's great news for me. I've been here for two years now and I'm looking forward to the next five seasons now that I've signed," Cresswell told the club website (www.whufc.com).
Cresswell is the second West Ham player to commit his long-term future to the club in the close season after midfielder Michail Antonio penned a new deal on Monday.
West Ham, who secured a Europa League spot for the second successive year after finishing seventh last season, open their 2016-17 campaign against Chelsea at Stamford Bridge on Aug. 13.
News that makes sense
Your trusted source for staying up-to-date with the world around you. Get free daily news updates and analysis, straight to your inbox.
(Reporting by Shravanth Vijayakumar in Bengaluru; editing by Ken Ferris)
