His first visit will likely take place from May 26 to 28, Japanese broadcaster NHK reported earlier on Wednesday, citing Japanese officials. Trump is expected to become the first foreign dignitary to meet with Crown Prince Naruhito after he succeeds his father, Akihito, as emperor of Japan on May 1, NHK said.
Trump will also attend the Osaka meeting of the Group of 20 largest world economies in June, the White House official said.
Trump's administration has been working with the political leadership of both Japan and South Korea in advance of his summit at the end of the month with North Korea's leader Kim Jong Un, as they work to help achieve the U.S. goal of convincing North Korea to abandon its nuclear weapons. North Korea has threatened to strike all three nations with nuclear weapons.
Trump also spoke with Japanese Prime Minister Shinzo Abe on Wednesday morning, according to the White House, and the two leaders "reaffirmed their commitment to achieving the final, fully verified denuclearisation of" North Korea and discussed Trump's upcoming summit with Kim.
Abe has said Japan is committed to normalizing diplomatic relations with North Korea and has pledged to work with China to resolve tensions on the peninsula.
The Japanese embassy in Washington did not immediately respond to requests for comment.