The US Geological Survey said the earthquake was centred 129 miles below the earth's surface in the Banda Sea.
It was felt in parts of Indonesia and in East Timor's capital Dili, as well as across Australia's most northern city, Darwin.
Many people were evacuated from high-rise buildings in Darwin after the earthquake rattled the city for around five minutes.
One worker, who gave her name only as Robyn, said no alarm had gone off but workers had decided to get out of her building anyway.
She said it was the strongest earthquake she had ever felt in Darwin.
There were no reports of any damage or injuries as a result of the earthquake, and Indonesia's geophysics agency said it did not cause a tsunami.
The Banda Sea tremor was recorded minutes after a 6.1-magnitude earthquake in Indonesia's Papua province, at a depth of 12 miles.
Rahmat Triyono, Indonesia's head of earthquake and tsunami centre, said the Papua earthquake was followed by several smaller aftershocks, but there was no immediate report of major damage or injuries.
Indonesia is prone to earthquakes and volcanic eruptions due to its location along the Pacific Ring of Fire.
A powerful Indian Ocean quake and tsunami in 2004 killed a total of 230,000 people in a dozen countries, most of them in Indonesia.
Join our new commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies