Prices were also supported earlier by news that Iran's Revolutionary Guard fired warning shorts over a Singapore-flagged oil products tanker in international waters in the Gulf. Iran appeared to be trying to intercept the ship in order to settle a legal dispute, according to a U.S. official.
But traders focused on lingering oversupply and shaky economic data globally.
Read MoreOil prices: National GDP winners and losers
While crude stocks in the United States fell for a second straight week, by 2.2 million barrels, following four months of steady gains, inventories were still almost 90 million barrels higher than this time last year.
"While the total draw of 2.2 million barrels was more than expected, we will note that supply surplus against five year averages remains substantial at more than 100 million barrels," Jim Ritterbusch, president at Ritterbusch & Associates, said in a research note.
A surprise increase in output in March from the No. 2 U.S. oil-producing state, North Dakota, added to supply concerns. The International Energy Agency also warned on Tuesday that the global oil glut is building.
Global demand growth for fuels was also in question, with weak economic indicators pressuring crude oil.
Read MoreSaudi claims oil price strategy success
China, the world's top energy consumer, saw its economy lose more steam in April despite easier monetary policy, while Europe's largest economy, Germany, slowed in the first quarter. In the United States, retail sales were flat in April, dampening hopes of a sharp rebound in growth in the second quarter.