Yahoo Inc. plans to reinvest a small portion of the cash it made from an early bet on Alibaba Group Holding Ltd. in another fast-growing startup: Snapchat Inc.

The Internet portal has committed to an investment in Snapchat at a $10 billion valuation, people familiar with the matter said. One of the people said Yahoo is investing about $20 million.

Over...