Brent futures rose 20 cents, or 0.3%, to $63.36 a barrel by 11:43 a.m. EDT (1543 GMT), while US West Texas Intermediate (WTI) crude rose 2 cents to $59.79.
“The oil complex remains confined to a comparatively tight sideways trading range that is approaching its fourth week,” said Jim Ritterbusch, president of Ritterbusch and Associates in Galena, Illinois, noting the market “shrugged off” the dollar weakness as it focuses on the large gasoline inventory build and coronavirus-weakened demand.
The US dollar fell to a two-week low against a basket of currencies, tracking Treasury yields lower, after data showed a surprise rise in US weekly jobless claims.
A weaker dollar makes oil cheaper for holders of other currencies, which usually helps boost crude prices.
The S&P 500 hit a record high and the Nasdaq was at a seven-week peak, helped by gains in tech-related stocks, a day after the Federal Reserve reiterated its pledge to remain ultra-dovish until the economic recovery is more secure.
While crude oil inventories in the United States fell more than forecast by analysts, gasoline inventories rose sharply, the US Department of Energy said on Wednesday.
“A huge build in road fuel stocks is not what the market was expecting and concerns over the speed of the oil demand recovery resurfaced, leaving traders wondering how stable road fuel usage actually is,” said Rystad Energy analyst Bjornar Tonhaugen.
US gasoline stocks increased by 4 million barrels to a little more than 230 million barrels as refiners ramped up output before the summer driving season.
Still, demand remains weakened by the impact of the coronavirus.
At the same time, Russian oil output increased from average March levels in the first few days of April, traders said.
Iran and the United States held talks with other powers on reviving a nuclear deal that almost stopped Iranian oil from coming to market, reviving tentative hopes Tehran might see some sanctions lifted and add to global supplies.
In the United States, meteorologists said the country should prepare for a sixth year of above-average number of Atlantic hurricanes.
In other production news, energy research firm East Daley lifted its rig and production outlook for the Permian Basin in Texas and New Mexico following a 22% rally in WTI prices during the first quarter, setting the stage for years of oil and natural gas output from the shale formation.