Prices rose in January as locked-down consumers paid more for food and sellers of furniture and other household goods offered smaller-than-usual New Year discounts.
Inflation rose 0.7% in the 12 months to January, up from December's 0.6%, the Office for National Statistics said.
However, the costs of clothing and footwear bucked the trend and fell.
It came as some experts warned inflation could exceed the Bank of England's 2% target by the end of 2021.
According to the ONS, food prices rose by 0.6% in January, compared with a fall of 0.1% last time.
Premium potato crisps and cauliflowers saw big increases after being discounted before Christmas. The price of fresh salmon and frozen prawns also rose.
Jonathan Athow, deputy national statistician for economic statistics at the ONS, said household goods prices were also higher because there had been less discounting on items such as bedding or sofas.
But Mr Athow pointed out that January discounting had continued for some goods, and there was a 4.6% fall in the cost of clothing and footwear.
Experts said fashion is typically discounted in December and January for festive shoppers.
Surprisingly, another large contributor to rising costs was restaurants and hotels.
Prices in this category were estimated to have risen by 0.9% between December and January, largely driven by hotels. Holiday travel is not allowed under current lockdown rules, but hotels are open for people travelling for work and more recently people arriving in the UK from high risk countries who must quarantine.
What is inflation?
Inflation is the rate at which the prices for goods and services increase.
It affects everything from mortgages to the cost of our shopping and the price of train tickets.
It's one of the key measures of financial well-being, because it affects what consumers can buy for their money. If there is inflation, money doesn't go as far.
A little inflation, however, typically encourages people to buy products sooner and makes it easier for companies to put up wages. And both of those things boost economic growth.
Most countries' central banks have an inflation target of between 2% and 2.5%.
Inflation above 2%?
Some analysts warned on Wednesday that inflation could exceed the Bank of England's 2% target by the end of 2021.
As cuts in VAT for hospitality and tourism end at the end of March and energy prices rise, "that alone should push prices up and we expect it to be up at around 2% at the end of the year, but it could be higher than that", said Karen Ward, chief market strategist for Europe at JPMorgan Asset Management.
She added that there could also be an "explosion in demand and perhaps not quite enough goods and services to fulfil that" when lockdown restrictions are finally eased.
She told BBC Radio 4's Today programme that this would mean the Bank of England's next change to interest rates - which are currently at 0.1% - would probably be upwards, though not for some time.
But Ed Monk, associate director at Fidelity International, said that the picture overall was "pretty confusing for prices right now".
"It will take a few months and an ending of current restrictions for the full picture to emerge," he said.
In the long-term, he said that prices will also depend on how the labour market fares once the government's furlough scheme has ended.
"Any increase in unemployment rates could suppress wage and price rises," he said.