A one-off payment for household energy bills in December, part of government efforts to shield consumers, had a downward effect on prices, according to the statistics office.
Energy prices eased somewhat in December but were still up 24.4% compared with the same period last year, while food prices had increased by 20.7%, according to the office.
Germany's full-year harmonized inflation rate jumped to 8.7% in 2022 from 3.2% a year earlier, said the statistics office.
"Core inflation remains the number one inflation scourge for the time being," he added, referring to a measure that excludes volatile food and energy costs.
Commerzbank chief economist Joerg Kraemer also warned that core inflation had risen further and said the European Central Bank's "hesitant approach" means high inflation will stick around, despite energy relief measures.