Japanese investors stampeded out of foreign debt in June, selling a record amount, as Treasuries and other global bonds fell on signs the U.S. Federal Reserve may slow its bond buying soon.

Investors based in Japan sold a net 2.958 trillion yen ($29 billion) in foreign bonds and notes in June – a record amount - Ministry of Finance data showed Monday.

The...