Flight Crew Instrument; Flight Crew Multiengine; Flight Crew Air Transport Pilot (ATP)
Flight Crew Last 90 Days 232.95; Flight Crew Total 815.23; Flight Crew Type 815.23
Situational Awareness
Flight Deck / Cabin / Aircraft Event Smoke / Fire / Fumes / Odor
Air Traffic Control Provided Assistance; Aircraft Equipment Problem Dissipated; Flight Crew Diverted; Flight Crew Landed in Emergency Condition
Aircraft
We just leveled off at 30;000 feet and Flight Attendant informed us that there was a smell of smoke in the cabin. Shortly thereafter; they called again and said that other flight attendants smelled the electric smoke smell as did [the] passengers. We were a few miles north of ZZZ at the time and elected to divert. Both the Captain and I smelled an electric smell and donned our oxygen masks. The smell cleared in the cockpit and when we checked in with the flight attendants they said it had also cleared in the cabin. We [advised ATC] and asked for radar vectors to final approach to Runway XXR. We coordinated with the flight attendants deciding not to do an evacuation and unless we heard from them that the condition worsened; we would land normally and have the fire trucks follow us to the gate where we would deplane normally. We landed and taxied to the gate as we planned; and the smell never returned. The entire crew did a great job coordinating and executing this abnormal event.
After departing ZZZ1 and reaching our initial cruise altitude of 30;000 [feet; the flight attendants informed us that they had smelled electrical smoke. At the time we did not smell anything. The flight attendants called again and informed us that several flight attendants and passengers smelled smoke and that the rear of the cabin was 'hazy. 'Immediately after; the First Officer and myself smelled an electrical burning smell. We dawned our oxygen masks and [advised ATC]. ZZZ was the nearest airport. We proceeded to descend and set up for an approach to [Runway] XXR in ZZZ. The electrical smell cleared the cockpit. We were in communication several times with the flight attendants during the descent. During our final communication; the flight attendants informed us that the smell and smoke had dissipated. We landed without incident. We confirmed with the flight attendants once on the ground that the smoke and smell were no longer present. The airport fire and rescue did not observe any smoke or hot spots. We continued to the gate.
B737 flight crew reported a fume event during cruise resulting in an uneventful divert.