The quake struck around 65 miles west of the city of Sukabumi on the island of Java, at a depth of 21 miles.
People took to Twitter to give their account of the quake that “lasted around 20 seconds”.
Kate Walton wrote on Twitter: “Strong earthquake in Jakarta just now. At least 20 seconds.”
Another user posted: An earthquake in Jakarta just now. It’s quite strong. We’re all outside now.”
A third stated: “Woa! Earthquake in Jakarta. The building is still swaying.”
More to follow…