Francis took the decision after recognizing that John Paul II had performed a second miracle after his death, while he decided to waive the second-miracle requirement -- usual in sainthood causes -- for John XXIII.
The canonization of the two late pontiffs will "presumably" take place "before the end of the year," Vatican spokesman Father Federico Lombardi said.
The Italy-born Angelo Roncalli served from 1958 to 1963 and led the Catholic Church toward major reforms by opening the Second Vatican Council in 1962, which concluded three years later under his successor Paul VI.
"We all know the virtues and the personality of pope Roncalli, there is no need to explain the motives of his sainthood," Lombardi told reporters.
The Polish-born Karol Wojtyla, whose papacy under the name of John Paul II lasted from 1978 to 2005, is remembered for his charisma and his role in bringing down communist rule in Eastern Europe, starting from his home country.
The Vatican certified that a Costa Rican woman recovered from brain damage through his intercession on May 1, 2011 -- the day he was beatified, the ANSA news agency said. That miracle added to the curing of a nun from Parkinson's disease two months after his death.
John Paul II's rise to sainthood has been one of the fastest in modern times. Crowds chanted "santo subito" (saint now) at his funeral, and his successor Benedict XVI immediately started the process, waiving the normal five-year wait after a candidate's death.
John XXIII -- who is known in Italy as the "papa buono" (the good pope) -- was beatified by the then-ruling John Paul II in 2000, after he was credited with the 1966 curing of an Italian nun from serious stomach bleeding and infection.
Francis recognized several other miracles and martyrdoms on Friday, allowing for the beatification of Spanish bishop Alvaro Del Portillo, former head of Catholic conservative group Opus Dei, and of several priests killed during the Spanish cvil war.
More Nation & World Headlines
Obama: US willing to work with Russia, Iran on Syria crisis 8:27 a.m. Mars has streams of salt water in summertime, scientists say 8:27 a.m. Asians to become largest U.S. immigrant group Iraq turns to Russia in fight against Islamic State Pope Francis wraps up U.S. visit with open-air Mass John Boehner warns of ‘false prophets’ among Republicans Elizabeth Warren: Black Lives Matter is like civil rights movement Marijuana bundle drops from sky, slams into family’s carport
Our new comment system is not supported in IE 7. Please upgrade your browser here.