KOSPI and Kosdaq are displayed in the dealing room of Hana Bank in Seoul, Tuesday. The benchmark KOSPI closed at 6,345.53, up 0.73 percent from the previous session, while the secondary Kosdaq closed at 857.84, up 0.39 percent. Yonhap

KOSPI closed higher Tuesday as strong early-August export data outweighed lingering concerns over AI investment and led gains in major semiconductor shares.

The benchmark KOSPI closed at 6,345.53, up 0.73 percent from the previous session. The index opened 0.63 percent lower but reversed course as large-cap semiconductor stocks recovered after taking a breather in recent sessions.

Foreign and institutional investors purchased a net 44.6 billion ($31.45 million) and 31.9 billion won worth of shares, respectively. Retail investors sold a net 72.4 billion won.

SK hynix rose 0.35 percent to close at 1,425,000 won, while Samsung Electronics gained 4.13 percent to finish at 239,500 won.