The resolution was backed by a wide majority, with 153 of 193 member nations supporting the call to halt the conflict.
The resoution was voted against by the United States, Israel, Austria, Czech Republic, Guatemala, Liberia, Micronesia, Nauru, Papua New Guinea and Paraguay. There were 23 abstentions, including Germany and the UK.
The UNGA vote came days after the United States vetoed a similar resolution in the UN Security Council.
Arab and Muslim-majority nations had called for an emergency session of the 193-member General Assembly to vote on the resolution.
Unlike Security Council resolutions, General Assembly resolutions are not legally binding. But the assembly's message reflects world opinion, UN spokesperson Stephane Dujarric said, and puts pressure on the US and Israel.
UN vote is 'historic' — Palestinian envoy
The Palestinian envoy to the United Nations said the overwhelming vote in favor of a humanitarian cease-fire in Gaza, in which 153 countries backed a cessation of fighting, marked a "historic day."
"Today was a historic day in terms of the powerful message that was sent from the General Assembly," said the Palestinian ambassador.
"It is our collective duty to continue in this path until we see an end to this aggression against our people."