The U.S. dollar edged lower on Wednesday but held on to most of the previous day's gains, after leaping on Federal Reserve officials' hints at aggressive rate hikes and drawing support amid a U.S.-China flare-up over Taiwan.
The dollar index, which tracks the greenback against six major peers, has softened from a two-decade high in mid-July as investors reined in expectations of Fed rate hikes.
But a trio of Fed officials signaled on Tuesday the central bank remains "completely united" on increasing rates to a level that will put a dent in the highest U.S. inflation since the 1980s, lifting the dollar index 0.8% that day.
The index pared back slightly on Wednesday, down a quarter of a percent at 106.160.
Frictions after the highest level U.S. visit to Taiwan in 25 years are likely to help support the safe haven U.S. dollar for now, currency analysts said.
China furiously condemned House of Representatives Speaker Nancy Pelosi's visit and began six days of military drills surrounding Taiwan, as Pelosi hailed the self-ruled island as "one of the freest societies in the world".
Barring a further escalation, U.S. rate hike bets are likely to remain the key driver of dollar moves, analysts said.
"It was clear that Fed officials had thought market participants had gone too far in paring back rate hike expectations," currency analysts at MUFG said in a note. "The hawkish Fed comments had an immediate impact."
U.S. monthly jobs data due on Friday will help set the tone for the greenback, analysts said.
The Japanese yen - which had lost more than 1% versus the dollar on Tuesday - was broadly flat on the day at 133.130 yen per dollar.
The euro gained 0.2% to $1.01855 , despite fresh data showing business activity in the euro zone contracted slightly in July as consumers reined in spending in the face of soaring price rises.
Sterling also gained ground on the dollar, up 0.3% at $1.21940, retracing some of its losses after a nearly 1% slide the previous day.