Containers are stacked at a port in Pyeongtaek, south of Seoul, July 1. Yonhap

Korea posted an all-time high current account surplus in May on robust exports of semiconductors, central bank data showed Wednesday.

The current account surplus totaled $38.61 billion in May, up from $28.29 billion the previous month, according to the data from the Bank of Korea (BOK).

It marked the largest monthly current account surplus ever, renewing the previous record of $37.93 billion set in March.

Compared with the same month a year earlier, the figure surged from $9.91 billion.