Both benchmarks were trading at their highest since June 7 after rising more than 1.5% in the previous session on a report showing U.S. crude and fuel inventories fell last week.
Crude inventories fell by 4.7 million barrels in the week to July 14, compared with analysts' expectations for a decrease of 3.2 million barrels, the EIA said.
Russia is ready to continue working with OPEC, a source said, adding that Moscow welcomed a flexible approach by OPEC's leader Saudi Arabia to accommodate rising output from Nigeria and Libya.
Before the EIA report that revealed a bigger weekly draw than forecast in crude and gasoline stocks, WTI and Brent futures were up about 0.6%, supported by strong demand for gasoline.
U.S. shale oil production is forecast to rise for the eighth consecutive month, climbing 112,000 bbl/d to 5.585 MMbbl/d in August, the U.S. Energy Department said in a report July 17.
Oil prices edged higher on July 14 and were on track for solid weekly gains following positive demand signals, production issues in Nigeria and a reported decline in stocks.