The inflation rate a year earlier stood at 2.4 percent.
Eurostat said food, alcohol and tobacco prices had the sharpest annual increase with a gain of 3.5 percent, up from 3.2 percent in June.
Inflation was relatively calmer in other categories. Energy prices at an annual rate rose 1.6 percent in July, while the price of services rose 1.4 percent.
Core prices, which excludes food and energy prices, rose 1.2 percent in July, unchanged from June. Prices excluding only energy rose 1.6 percent in July, also consistent with June.
Couple mistakenly served bag of cash at McDonald's drive-thru
Gal Gadot cast as Wonder Woman for 'Batman vs. Superman'