The US Geological Survey (USGS) said the quake struck at 20:46 local time about 52 miles north-west of the mining area of Iquique.
Waves of up to 6ft have hit some areas in Chile, and there have been power cuts, fires and landslides.
Tens of thousands of people were evacuated in affected areas, where a state of emergency has been declared.
Chilean TV broadcast pictures of traffic jams as people tried to leave.
Officials said the dead included people who were crushed by collapsing walls or died of heart attacks.
Iquique Governor Gonzalo Prieto told local media that in addition to those killed, several people had been seriously injured.
While the government said it had no reports of significant damage to coastal areas, a number of adobe homes were reported destroyed in Arica.
Further damage may not be known until dawn. The tsunami warning in Chile will last at least until 05:00 local time.
The quake shook modern buildings in Peru and in Bolivia’s high altitude capital of La Paz – more than 290 miles from Iquique.
At least eight strong aftershocks followed in the few hours after the quake, including a 6.2 tremor.
Interior Minister Rodrigo Penailillo told Chilean TV that some 300 women inmates had escaped from a prison in Iquique. The authorities are reported to have deployed a planeload of special forces to guard against looting.
He said President Michelle Bachelet was being kept informed. She is to travel to the affected area.
“We have taken action to ensure public order in the case of Iquique, where we’ve had a massive escape of more than 300 female prisoners, so that the armed forces and police can coordinate and provide security to the residents,” Rodrigo Penailillo said.
The Pacific Tsunami Warning Center (TWC) issued an initial warning for Chile, Peru, Ecuador, Colombia and Panama.
However, all warnings, watches and alerts were later lifted except for Chile and Peru.
Tsunami watches – in which the danger of tidal waves is deemed to be less serious – had been in place for Costa Rica, Nicaragua, El Salvador, Guatemala, Mexico and Honduras.
“Everyone along our coast should be alert and ready,” Ecuadoran President Rafael Correa said on Twitter.
Ecuador later reduced its alert but maintained a high level of vigilance for the Galapagos Islands.
High waves hit parts of the Chilean coast within 45 minutes of the quake. Pisagua, Patache and Iquique all saw big waves.
“We have asked citizens to evacuate the entire coast,” Chilean home office minister Mahmud Aleuy said.
Evacuations were also ordered in Peru, where waves 6.5ft above normal forced about 200 people to leave the seaside town of Boca del Rio near the Chilean border, police said.
The area close to the epicentre is mineral rich, but none of the major copper companies reported any break in production.
Chile is one of the most seismically active countries in the world.
ERVa7MZP87Y 2JRUExQQaA4The US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…