Frank Gore ran for a 2-yard touchdown early in the fourth quarter for his franchise-best 51st touchdown rushing, breaking a tie with mentor Roger Craig and the late Hall of Famer Joe Perry.
Brian Hoyer went 19 of 34 for 225 yards and a late TD toss in his first career NFL start as Arizona's fourth quarterback. The Cardinals (5-11) lost for the 11th time in their last 12 games in what might have been Ken Whisenhunt's final game as coach.
Crabtree's outstanding outing was the best by a 49ers receiver since Terrell Owens' 166-yard performance on Nov. 25, 2002, against Philadelphia.
Crabtree caught a 31-yard pass to set up his team-leading eighth TD reception on the next play. The sequence put him over 1,000 yards, giving San Francisco its first 1,000-yard receiver since T.O. in 2003.
The next series, Crabtree made a pretty, one-handed grab with his right hand along the left sideline on third-and-11 for a 19-yard gain and first down.
He made a 14-yard catch on fourth down late in the third, and later converted another fourth down with a reception of 7 yards.
What a boost for an injury-depleted receiving corps missing Mario Manningham for the rest of the season because of a knee injury and had tight end Vernon Davis limited a week after sustaining a concussion.
Struggling San Francisco kicker David Akers missed wide left on a 44-yard field goal attempt midway through the second quarter, then did it again with nearly the same kick from 40 yards this time 24 seconds before halftime. Akers put his hands on his knees and closed his eyes in frustration as boos rained down from the sellout crowd at Candlestick Park.
He missed for the fourth time in his last eight spanning three games and 13th time in 40 tries after setting an NFL single-season record with 44 in 52 attempts. He had a 21-yard try blocked in the loss at Seattle and returned by Richard Sherman for a 90-yard touchdown.
But Akers bounced back by nailing one from 43 yards early in the second half yet was later clipped in his left, kicking foot by Arizona's Justin Bethel. He stayed in the game, then booted a 26-yard field goal with just more than 9 minutes remaining.
Hoyer exhibited poise in the early moments. He completed 7 of his first 13 passes and three straight for 7, 15 and 12 yards during one drive as Arizona took a 3-0 lead on Jay Feely's 35-yard field goal late in the first quarter. Feely added a 31-yarder early in the second to make it 6-0.
The Cardinals outgained the 49ers 129-15 in total yards in the opening quarter and held San Francisco without a first down.
But that didn't last long.
The Cardinals ended a six-game stretch without a touchdown passing when Hoyer hit Michael Floyd on a late 37-yard touchdown pass to end a stretch of six games without a TD in the air.
The Cardinals pounded the ball toward the right side of San Francisco's defensive line where Pro Bowler Justin Smith had been stout against the run all season before getting hurt two weeks ago.
But Hoyer, who replaced the benched Ryan Lindley in last week's 28-13 home loss to the Bears, couldn't make enough plays against San Francisco's stingy defense.
Former starting quarterback Alex Smith made what could have been his final appearance in a 49ers uniform when he entered the game with 5:57 to go playing to chants of "Let's Go, Alex!" and "Alex! Alex!"
Online: http://pro32.ap.org/poll and http://twitter.com/APNFL
Arizona 13, San Francisco 27
Arizona 3 3 0 7 13
San Francisco 0 7 10 10 27
Ari • FG Feely 35, 5:33.
Ari • FG Feely 31, 13:44.
SF • Crabtree 49 pass from Kaepernick (Akers kick), 7:20.
SF • FG Akers 43, 11:07.
SF • Crabtree 7 pass from Kaepernick (Akers kick), 5:58.
SF • Gore 2 run (Akers kick), 12:59.
SF • FG Akers 26, 9:07.
Ari • Floyd 37 pass from Hoyer (Feely kick), 1:59.
Attendance • 69,732.
First downs 11 20
Total Net Yards 262 407
Rushes-yards 17-55 37-129
Passing 207 278
Punt Returns 3-17 1-28
Kickoff Returns 5-109 2-36
Interceptions Ret. 0-0 1-12
Comp-Att-Int 19-34-1 17-29-0
Sacked-Yards Lost 2-18 1-4
Punts 6-50.8 4-46.3
Fumbles-Lost 1-1 1-0
Penalties-yards 5-34 3-25
Time of Possession 23:57 36:03
Rushing • Arizona, Powell 14-52, Hoyer 1-6, Stephens-Howling 1-(minus 1), Roberts 1-(minus 2). San Francisco, Gore 20-68, James 7-49, Dixon 3-6, Kaepernick 3-5, Miller 2-3, Ale.Smith 2-(minus 2).
Passing • Arizona, Hoyer 19-34-1-225. San Francisco, Kaepernick 16-28-0-276, Ale.Smith 1-1-0-6.
Receiving • Arizona, Floyd 8-166, Roberts 3-18, King 3-10, Fitzgerald 2-13, Dray 1-12, Kelemete 1-10, Powell 1-(minus 4). San Francisco, Crabtree 8-172, Gore 3-21, Walker 2-50, Moss 2-28, Miller 1-6, V.Davis 1-5.
Missed Field Goals • San Francisco, Akers 44 (WL), 40 (WL).