Iceland announced this week that it plans to reopen its borders to tourists by June 15. The country will welcome travelers from all over the world, including the United States, but will subject visitors to either testing or quarantine.

Less than two months after limiting arrivals from international travelers, the country announced its reopening plan, which could be moved up if the number of cases stays low. According to Iceland’s Ministry for Foreign Affairs, the timing “depends on when all the practicalities will be in place.”

Earlier this month, the European Commission extended its ban on non-essential travel through June 15. Iceland is a member of the Schengen area and, according to the ministry, will confer with other member states about opening its external border. In addition, the government will not allow visitors to venture into wider Europe without permission from the other countries.

Since late February, the Nordic island nation has recorded at least 1,800 confirmed cases of covid-19 and 10 deaths. The number of confirmed cases has dropped to four so far in May, one of the encouraging developments that helped influence the recent decision. Officials have controlled the spread of the virus through such measures as testing and tracing, and will extend these practices to the visiting public.

Upon arrival at Keflavik International Airport, visitors will be tested for the coronavirus at no cost during a two-week trial period. The ministry said the planning group has not yet determined the cost to travelers beyond the initial period. After the test, the visitors can enter the country and start their vacation, but they must provide a contact number in the event of a positive result. Results can be expected in as little as a few hours. Visitors can also use the tracing app as a point of contact.

The ministry said health officials may also accept a certificate of recent test results from the visitor’s home country, as long as the document meets the government’s standards. Visitors who decline testing will be required to undergo a two-week quarantine.

To prevent a rise in cases, travelers will have to download the tracing app, Rakning C-19. Officials can use the technology to contact visitors about their results; the app also helps investigators pinpoint the source of infection and identify individuals who may have been exposed to the virus. About 40 percent of the country’s population of 364,000 has downloaded the app.

The ministry said the app will not misuse an individual’s personal information: “The app has been developed following the strictest privacy standards, with location data stored locally on the user’s device unless released for tracing purposes in case of an infection.” The country will not place any restrictions on healthy travelers beyond its commonly practiced safeguards.

The ministry said the government will likely loosen limits on gatherings from a maximum of 50 people to 200 participants. Patrons at restaurants and other public places must stay about 6½ feet apart. Most hotels and attractions are open, or will soon open. The Blue Lagoon’s Web site said the geothermal pool will remain closed until May 26.

For now, airlines are offering limited service from the United States to Iceland. Icelandair is departing only from Boston Logan International Airport but plans to release its summer schedule, including flights from Washington Dulles, in the near future.

“The country is opening, and we are excited to welcome tourists,” said Michael Raucheisen, an airline spokesman. “We will have a more comprehensive schedule soon, but it will be a significant reduction from what was anticipated.”