Shares surged +17.5% to $334.12 after Cloudflare crushed second-quarter expectations and raised its full-year outlook, vaulting the stock past its prior $305 all-time high and forcing Wall Street to recalculate whether the internet-infrastructure company can sustain the growth rate that justifies its sky-high price tag.

Revenue Blew Past Forecasts by a Wide Margin

Cloudflare posted Q2 revenue of $696.1 million and adjusted earnings of $0.29 per share, both beating Wall Street's $665 million and $0.27 consensus.

That 4.7% revenue beat was accompanied by 34.8% billings growth to $753.5 million , a forward-looking indicator suggesting demand isn't decelerating. The company lifted full-year revenue guidance to $2.864–$2.870 billion, topping the Street's $2.81 billion average estimate , while raising its full-year adjusted EPS outlook to $1.25–$1.26, up from $1.19–$1.20 previously. For shareholders, the raised guidance signals management's confidence isn't just about one strong quarter.

Big Customers Are Spending More, and AI Is the Reason

Cloudflare ended Q2 with 4,698 customers paying more than $100,000 annually, up 27% year over year, adding a record 986 net large customers over the trailing twelve months.

Its dollar-based net retention rate — a measure of how much existing customers increase their spending — accelerated to 120%.

The company said AI-agent traffic is expanding across its network, with enterprises using its infrastructure to route and secure AI-powered applications. That uptake gives Cloudflare a growing share of AI-related internet traffic, not just traditional web security.

Margin Pressure and a $151 Million Restructuring Charge Lurk Beneath the Surface

GAAP gross margin fell to 71.8% from 74.9% a year ago , and GAAP net loss widened to $170 million, partly reflecting $150.7 million in restructuring charges tied to an AI-first operating overhaul. Free cash flow was $56.4 million, or 8% of revenue — respectable but modest for a stock trading at roughly 48 times trailing sales before the earnings pop. CFO Thomas Seifert sold 55,000 shares on August 4 at ~$300, reducing his stake by 32.58%.

The Valuation Asks a Lot of the Future

Goldman Sachs raised its price target to $389 and Oppenheimer to $380, both maintaining Buy ratings. Yet Cloudflare already traded above the average analyst target of ~$262 even before this beat. The stock now prices in years of flawless execution. Investors cheering today's numbers must ask whether 36% growth can persist long enough to justify the premium — or whether the restructuring costs and margin compression are early signs that scaling AI infrastructure costs real money.