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
Rookies Dewar, Skoleski have been impressive for Silvertips early in season Seahawks' offensive line under fire for team's offensive struggles Seahawks hoping Lynch can play versus Bengals Arrieta, Cubs silence Pirates 4-0 to win NL wild-card game AquaSox announce their 2016 schedule NFL approves more international games, some outside England Floods force LSU-South Carolina to be moved to Louisiana FIFA investigator said to call for Blatter suspension
Our new comment system is not supported in IE 7. Please upgrade your browser here.