Box Inc. on Monday revealed plans to raise up to $250 million in an initial public offering, as the unprofitable startup tries to ward off intensifying competition in the online storage market.

The company is emblematic of today's IPO-bound Silicon Valley firm, with rapid revenue growth but also years of losses. In Box's case, the company is in a race to build the largest, most efficient data centers and secure as many customers as...