The earthquake's epicenter was in the sea off Taiwan's Taitung county, at a depth of 16.5 km (10.3 miles), the weather bureau said.
It reported only minor shaking in the county, a largely rural area.
The quake was not felt in Taipei, according to NDTV.
Taiwan lies near the junction of two tectonic plates and is prone to earthquakes.
MP/PR