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
Snohomish mixed martial artist returns to her first love Mariners beat Twins 4-3 in 11 innings Charles scores 29 points, Liberty beat Storm 78-62 Park wins Women's British Open, captures 4th different major Perry wins 2nd straight Champions Tour's 3M Championship Merritt shoots 67 to win Quicken Loans National by 3 shots Triple Crown winner American Pharoah wins $1.75 million Haskell Invitational Bills' Ryan names Incognito starting left guard
Our new comment system is not supported in IE 7. Please upgrade your browser here.