Simona Halep of Romania reacts during her match against Polona Hercog of Slovenia during Day 7 of the Miami Open Presented by Itau at Hard Rock Stadium.
The 27-year-old lost her place at the top of the women's game following Naomi Osaka's triumph at the Australian Open earlier this year.
But with the Japanese faltering here on Saturday, Halep can return to the position she last held at the end of 2018 if she lands the Miami Open for the first time.
The Romanian, who will also move up the to the top of the rankings if she reaches the final and Petra Kvitova doesn't win the title, will certainly have to put in a better display than the patchy performance which eventually sent the gutsy Hercog, the world number 93 from Slovenia, out.
"She played unbelievable and it was such a tough match," said Halep, who belted 48 winners compared to her opponent's 38 but won just 31% of points on her first serve.
"It was good to play for almost three hours though. I slowly found my rhythm but I always had belief so if I can keep doing this, I will have a good tournament.
She next faces seven-time Grand Slam champion Venus Williams, who swept past Russian Daria Kasatkina 6-3, 6-1.
Halep, the 2018 French Open champion and current world number three, arrived in Miami having failed to get past the round of 16 in Indian Wells and the quarter-finals in Dubai.
She started sluggishly on the center court at Hard Rock Stadium, where Hercog moved into an early 3-1 lead.
Halep finally broke back for 4-4 but another sloppy game handed Hercog the opportunity to grab a first set lead which she duly took.
Simona Halep of Romania returns a shot to Polona Hercog of Slovenia during Day 7 of the Miami Open Presented by Itau at Hard Rock Stadium.
Halep was far more solid in the second, despite missing the chance to draw level when she was broken serving at 5-3 and Hercog kept her nerve make it 5-5.
As the clock ticked past two hours, a brilliant drop shot by Hercog ensured a second set tie break only for Halep to emphatically win it 7-1 before the decider was sealed for the Romanian when she held to love after 2 hours and 50 minutes.
On the men's side, defending champion John Isner blew Spain's Albert Ramos-Vinolas off court with serves touching 139 mph as the American sealed an ultimately comprehensive 7-5, 7-6 (8-6) win.
He was broken in the very first game but responded by hitting a total of 16 aces to set up an intriguing match with Kyle Edmund in the last 16 after the British number one impressively saw off Canadian Milos Raonic 6-4 6-4.
"I did a lot of things well," Isner said. "I played a good first set, even though I didn't start it off well. In the second, it wasn't quite as clean. But I'm into the Round of 16 of a big tournament and I'm happy."
World number one Naomi Osaka refused on Wednesday to become embroiled in a dispute with one of her former coaches who is suing her for 20 per cent of her career earnings.
The 2020 Olympic Games men's Tennis final in Tokyo will be played over three sets rather than five, the International Tennis Federation (ITF) said on Wednesday, ending the prospect of a marathon gold medal shootout.
Nearly six years after winning the French Open Juniors title, the 22-year-old Garin finally broke through on the tour, spoiling Ruud's bid to become the first Norwegian winner.
Steve Smith and David Warner, whose year-long bans for ball-tampering expire this month, were invited by coach Justin Langer as part of their re-integration after the scandal in South Africa that rocked the cricketing world.
Pakistan selectors on Thursday left out pace spearhead Mohammad Amir from the preliminary 15-man squad for next month's World Cup to be held in England.
Yoshiro Mori announced his surprise resignation as honorary chairman of the Japan Rugby Football Union, officials said on Thursday, just months before the country hosts the World Cup.
Liverpool crushed FC Porto 4-1 in Portugal on Wednesday to win their Champions League quarter-final tie 6-1 on aggregate and march on to a last-four showdown against Barcelona.