Oil prices edged up on Wednesday, lifted by declining U.S. crude inventories, although markets were still restrained by general oversupply.
Market focus was turning to the release of official U.S. Energy Information Administration data later on Wednesday for a further update on inventories.
Brent crude futures were at $51.06 per barrel at 0651 GMT, up 23 cents, or 0.45 percent, from their last close.
Traders said that reports of a dip in Libyan output to between 130,000 and 150,000 barrels per day (bpd), down from 280,000 bpd, had supported Brent.
U.S. West Texas Intermediate (WTI) crude futures were at $47.71 a barrel, up 16 cents, or 0.3 percent.
U.S. crude inventories fell by 9.2 million barrels in the week to Aug. 11 to 469.2 million, industry group the American Petroleum Institute said on Tuesday.
That compared with analyst expectations for a decrease of 3.1 million barrels.
"The market took this as a mildly bullish report," said William O`Loughlin of Australia`s Rivkin Securities.
However, gasoline stocks climbed by 301,000 barrels, compared with analyst expectations for a 1.1 million barrel decline.
More broadly, analysts said ample supplies were preventing prices from moving much higher.
"Excessive supply ... is continuing to weigh on oil prices ... Not a lot has changed despite the OPEC and Russia efforts recently. While these producers have tried to limit their oil output, U.S. shale oil continues to rise," said Fawad Razaqzada, analyst at futures brokerage Forex.com.
The Organization of the Petroleum Exporting Countries together with non-OPEC producers like Russia has pledged to restrict output by 1.8 bpd between January this year and March 2018.
Offsetting much of that effort, however, U.S. oil production has soared by almost 12 percent since mid-2016 to 9.42 million bpd.
"OPEC and Russia still face an uphill battle in reducing the global supply surplus in the face of growth in output elsewhere and less than compliant behaviour in their midst (Iraq, UAE)," said French bank BNP Paribas.
On the demand side, analysts see a gradual slowdown in fuel consumption growth.
In the United States, energy consultancy Wood Mackenzie said gasoline demand was already peaking due to improving fuel efficiency and the rise of electric vehicles.
In China, state-owned China National Petroleum Corporation (CNPC) said on Wednesday that gasoline demand would likely peak around 2025 and outright oil consumption would top out around 2030.
This means that oil demand from the world`s two biggest consumers may soon stall, while consumption has already peaked in Europe and Japan.