The trade surplus in the first half of the year was 4.290 billion euros, down by 432 million euros from the same period last year.
KSH will publish a second reading of the June data on August 31.
Gergely Suppán of Takarékbank said trade surplus in June was significantly higher than expected. For the year the annual surplus could still shrink by 600 million euros to 7.48 billion euros, somewhat slowing down GDP growth.
The effect could be still less than in 2017 when the trade surplus narrowed by 1.6 billion euros, he said.
K+H Bank chief analyst Dávid Németh said although export growth surpassed import growth in June this could be temporary as growing household consumption, investments and import purchases needed for exports are all pushing import growth higher.