Chairman Mark Tucker, who led the search for a new chief executive, said: "John has broad and deep banking experience across regions, businesses and functions.
"He has a great understanding and regard for HSBC's heritage, and the passion to build the bank for the next generation.
"Through the search process, John has developed with myself and the board a clear sense of the opportunities and priorities that lie ahead."
Mr Flint said he is "humbled by the responsibility" and excited by the opportunity to head HSBC.
Under Mr Gulliver's tenure, the bank has had to grapple with a series of misconduct issues and has paid billions in fines, including for links to Mexican drugs cartels.
Business news: In pictures
Show all 13
However, the bank chose to focus on Mr Gulliver's work in preventing financial crime and its dividend performance.
Mr Tucker added: "Stuart has led HSBC through a challenging and difficult period with great energy and commitment and successfully reshaped the business strategy of the bank.
"This includes the important work of putting in place global standards for identifying and preventing financial crime.
"Since January 2011 the bank has paid 60.7 billion dollars in dividends, announced an additional 5.5 billion dollars of share buybacks, and delivered a total shareholder return of 66.8%. This is an outstanding track record."
PA
Join our commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies
Join our commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies