According to the Office for National Statistics (ONS), surging energy bills was one of the main driving forces behind rising inflation.
Core inflation, which strips out volatile food and energy costs, hit 6.2%. The retail price, which is used for pricing some public services including train fares, rose to 12.3%.
The pound (GBPUSD=X) temporarily pushed higher against the dollar on the back of the figures, fuelled by expectations of further interest rate rises from the Bank of England (BoE).
Sterling rose as much as 0.3% against the dollar to $1.2113, and against the euro it was up 0.1% at 83.93p, before later falling back.
“As we have recently argued, a more hawkish Bank of England policy path isn’t necessarily supportive for the pound, as it comes at the expense of future growth conditions,” Simon Harvey, head of FX analysis at Monex Europe, said.
“We expect the initial rally to fade throughout the day for this reason and favour GBPUSD trading back towards the 1.20 handle.”
Markets are now betting that Threadneedle Street will more than double interest rates over the next nine months after the latest inflation figures outstripped expectations.
Traders are betting on a further 200 basis points of rate rises by May 2023 to help get a handle on surging prices.
It came as US retail sales flatlined last month as high inflation and rising interest rates forced households to spend more cautiously.
Retail purchases were flat in July after having risen 0.8% in June, according to Commerce Department data.
The muted retail sales figure was down to a 1.8% drop in gasoline sales, a 1.6% fall in cars and parts and a 1.7% decline in other vehicle sales. Excluding cars and gasoline, retail sales rose 0.7%.
Food sales rose 0.2% while building and garden equipment sales were 1.5% higher. Online sales showed the biggest rise, of 2.7%.
Michael Pearce, senior US economist at Capital Economics, said: "Even accounting for weaker growth in August and September, that leaves third quarter consumption growth on track for growth of 2.0%-2.5% annualised. That suggests the risks to our forecasts that GDP growth will rebound to 2.0% lie to the upside."
Stocks in Asia managed to close higher overnight, with healthy gains following a positive lead from Wall Street.