Snap Inc. has confidentially filed paperwork for an initial public offering that may value the popular messaging platform at as much as $25 billion, a major step toward what would be one of the highest-profile stock debuts in recent years.

The company, formerly known as Snapchat, made the filing with the Securities and Exchange Commission in recent weeks, according to people familiar with the matter.

An...