Core inflation, which excludes volatile items like energy and food, stood at 4%, the highest figure since the euro was created.
Inflation across the eurozone has reached a new all-time high of 8.9% in July, up from 8.6% in June.
A total of 10 states that use the single currency appear in double-digit territory: Belgium, Estonia, Greece, Spain, Cyprus, Latvia, Lithuania, the Netherlands, Slovenia and Slovakia.
The data from Eurostat is yet another ominous sign for the bloc's economy, which is gradually slowing down, raising the likelihood of a recession.
Prices in July continued to climb in most countries, pushed by the worsening disruption in global energy markets fuelled by Russia's invasion of Ukraine.
The upward trend in gas prices has spilled over to other products, including fresh fruits and vegetables.
The July reading shows a timid regression in energy inflation -- from 42% in June to 39.7% in July -- but an increase in all of the other indicators.
The global food crisis, disrupted supply chains and China's strict zero-Covid lockdowns are also putting pressure on everyday goods and services.
Core inflation, which excludes volatile items and gives a better idea of consumers' actual purchasing power, stood at 4%, the highest mark since the creation of the euro.
In Germany, the EU's industrial powerhouse, inflation rose to 8.5% on a yearly basis, after a small decrease last month (8.2%) that briefly raised hopes of relief.
France's prices rose by 6.8%, while Italy's grew at a 8.4% rate.
The Baltic countries remain particularly affected by the upward trend -- Estonia (22.7%), Lithuania (20.8%) and Latvia (21%) -- due to their heavy reliance on foreign imports to meet their energy needs.
It is unclear when or how the energy crisis will begin to ease: the Kremlin has shown it is willing to manipulate gas flows in retaliation for Western sanctions.
Countries are already preparing for a worst-case scenario where Russia unilaterally interrupts all supplies and sends the EU into a deep, painful recession.
The latest inflation reading from Eurostat comes a week after the European Central Bank (ECB) announced a larger-than-expected hike in interest rates, the first move of that kind in 11 years.
The ECB has indicated it will continue hiking rates if the economic situation deteriorates, ditching the traditional forward guidance and embracing instead a meeting-by-meeting approach to decide its next steps.
July's inflation number of 8.9% is more than four times the 2% target desired by the bank.
Even Malta, the eurozone member with the lowest inflation rate (6.5% in July), vastly overshoots the ECB's goal.
Partial GDP data, also released on Friday, showed a 0.7% growth across the eurozone and 0.6% in the EU during the second quarter of 2022 compared to the previous period.
"Good news! Euro area economy outperforms expectations in Q2," Paolo Gentiloni, European Commissioner for the economy, said on Twitter. "Uncertainty remains high for the coming quarters: need to maintain unity [and] be ready to respond to an evolving situation as necessary."
Germany registered 0% growth, while Latvia, Lithuania and Portugal entered negative territory. France avoided a technical recession after expanding by a timid 0.5% rate.
The bloc's GDP data contrasts with that of the Untied States, which this week posted a second quarter of contraction in a row.