Chasing the Giants and Mets in a tight race for the two NL wild cards, St. Louis moved within a half-game of San Francisco for the league's final playoff spot — pending the Giants' late game against Colorado.
New York, which beat Miami 12-1, leads the wild-card standings and remained 1 1/2 games ahead of the Cardinals.
Jhonny Peralta had a three-run homer and drove in four runs for the Cardinals, who had lost four of five. Matt Carpenter, Randal Grichuk and Matt Adams also homered.