The world's rural population will peak in a few years then decline by 2050, according to the report on urbanization by the Population Division of the UN Department of Economic and Social Affairs (UN DESA).
The findings of urbanization advancing so dramatically due to population growth and to migration can help cities design policies and practices to prepare for the influx, said John Wilmoth, director of the Population Division.
"When urban growth is rapid, insuring access to housing, water, sanitation, electricity, public transport, education and health care for all is especially challenging," Wilmoth said at a UN news conference.
"Managing urban growth to insure that it is sustainable has become one of the most important development challenges of the current century," he said.
Tokyo with 37 million people is the world's largest city but it is due to be overtaken by Delhi around 2028, the report said.
At about the same time, India is expected to surpass China as the country with the world's largest total population.
As of today, 55 percent of the world population lives in urban areas, increasing to 68 percent by 2050, the report said.
Overall, urbanization can be seen as positive, Wilmoth said.
"The increasing concentration of people in cities provides a way of more economically providing services," he said. "We find that urban populations have better access to health care and education."
The concentration of population also may help minimize humans' environmental impact on the planet, he said.
"However, the challenge is that in many countries it's taking place so rapidly ... and large slum areas have developed that are not maybe achieving the goals of sustainable development the way that we would like."
Among other findings, the report said in 1990 there were just ten megacities with populations of 10 million or more.
As of 2018, there are 33 megacities and by 2030, 43 megacities are projected, mostly in developing countries.