Steve Phillips was Crewe's hero with two penalty saves in a 3-2 victory which ended Chesterfield's unbeaten home League Two record this season.
Crewe cashed in with goals from Clayton Donaldson, Ashley Westwood and Luke Murphy with Drew Talbot and Jack Lester netting for the home side.
Chesterfield missed a great chance to take the lead when Lester was tripped by Danny O'Donnell in the eighth minute but Davide Somma's weak spot-kick was easily saved.
Phillips rescued Crewe again with another penalty save, this time from Wade Small, after Matt Mitchell-King had handled in the 22nd minute and the visitors took advantage when Donaldson scored with a first-time shot from the edge of the box three minutes later.
Crewe netted again in the 35th minute when Westwood curled a superb free-kick from just outside the area inside the right post for his first senior goal and after Lester had struck the bar, Calvin Zola was denied by Tommy Lee.
Chesterfield piled on the pressure in the second half but Lee saved well from Donaldson before Talbot pulled one back with a rising drive in the 73rd minute.
Donaldson eased Crewe's nerves six minutes from time by setting up Murphy to steer in the third but Lester replied to set up a tense finish.
Copyright (c) PA Sport 2009, All Rights Reserved.
Do YOU want to write for GiveMeSport? Get started today by signing-up and submitting an article HERE: https://www.givemesport.com/writeforgms