Having trailed twice in the previous round before winning in five sets, Ferrer struggled initially to create opportunities on Dodig's serve and was two points from going two sets down.
But he dominated the final two sets, breaking Dodig five times and clinching the match with a forehand winner.
Coming off his first career Grand Slam final at the French Open, Ferrer reached his second straight Wimbledon quarterfinal.
He will play the winner between No. 8 Juan Martin del Potro and Andreas Seppi.
More Sports Headlines
Pro lacrosse scoring leader Tavares retiring after 24 years 9:22 a.m. Sounders deal with significant international issues Morrison's pinch homer lifts Mariners to 7-5 win over Astros Ex-Bills' RB Jackson meets, takes physical with Seahawks AquaSox fall 7-6 to Spokane in 10 innings Steady in face of Kyrgios' 'antics,' Murray wins at U.S. Open M's notebook: Quartet added from Triple-A Hasselbeck lobbying to start Colts' preseason finale
Our new comment system is not supported in IE 7. Please upgrade your browser here.