FRANKFURT--Rising exports propelled Germany's trade balance to its highest surplus on record in July, a sign that foreign demand is underpinning economic growth in Europe's largest economy.

Germany's trade surplus, adjusted for seasonal swings and calendar effects, swelled to 22.8 billion euros ($25.6 billion) in July from a revised EUR22.1 billion in June, the federal statistical office said Tuesday.