It's no secret that people don't watch as much TV as they used to. Millennials, in particular, are leading the way when it comes to cord-cutting and watching less broadcast television in favor of streaming services like Netflix (NASDAQ:NFLX) and Hulu.

You might think the biggest beneficiary of the trend is Netflix. As more people eschew traditional television for streaming services, the leader in the category stands to gain. But there's an entirely different industry that stands to gain billions of dollars in revenue as a result of people watching less television: internet advertising. Two companies in particular -- Facebook (NASDAQ:FB) and Alphabet (NASDAQ:GOOG) (NASDAQ:GOOGL) -- stand to benefit the most.

A couple lounging on a couch with a laptop on the coffee table.

Image source: Getty Images.

The opportunity is massive

Advertisers will spend $72.72 billion on television ads in the United States alone this year, according to eMarketer. But as people spend less time watching TV (and the commercials broadcast alongside programming), that number won't move much higher.

eMarketer expects just 2% to 2.5% annual growth in U.S. TV advertising spend over the next five years. The market share of total ad spending going toward television will fall from 35.2% to 30.8% during that time, according to the research firm's estimates.

Facebook COO Sheryl Sandberg is fond of saying that ad dollars will follow eyeballs. So, as eyeballs continue to shift to their owners' phones and computer screens, so will the ad budgets. The other options for advertising -- print media, radio, etc. -- couldn't possibly take on tens of billions in new ad dollars.

But total users and time spent on Facebook, YouTube, Instagram, and other apps continues to climb. YouTube boasts more than 1.5 billion viewers watching over an hour per day on average. Instagram just announced that its youngest users spend over half an hour per day in the app on average. Meanwhile, television viewing among 12- to 24-year-olds is down nearly 50% from the first quarter of 2011 to the first quarter of 2017.

Data source: MarketingCharts.com analysis of Nielsen data. Graph source: Author.

To be sure, people still spend a ton of time watching television. Even young people spend over 13 hours per week in front of the TV. So, it's not like television advertising is just going to disappear. Likewise, print and radio advertising still bring in billions of ad dollars. Still, the only medium really growing is the internet.

Facebook and Google are the biggest beneficiaries

If you believe the cord-cutting trend will continue and ad budgets will shift to digital advertising, you ought to own shares of Alphabet or Facebook. The two combined to take nearly all of the growth in digital advertising during 2016. There's no reason to expect that trend to stop anytime soon.

Google is benefiting from the growth of mobile, as its search engine is even more dominant on mobile than on desktop. It's also benefiting from the increasing popularity of YouTube, which provides an excellent replacement for television ads. In fact, Google is investing in more quality content to attract television advertisers.

Facebook, likewise, is investing in its own video content in an effort to attract those TV ad dollars. It's also been able to grow engagement on Instagram with the introduction of Instagram Stories, and it's only just started showing ads on Messenger.

But the biggest reason Google and Facebook win nearly every new ad dollar that flows to digital is because they offer unparalleled reach. Television advertisers are interested in reaching as many people as possible with their messages. Nobody else can offer the same reach as Facebook and Google. As Sandberg says, Facebook has "a Super Bowl on mobile every day."

As more ad dollars follow the eyeballs from television to digital, Facebook and Google will surely see the vast majority of that revenue. Streaming services like Netflix will benefit from the desire for video entertainment, but they don't provide a home for those ad dollars, which present a much bigger revenue opportunity than $10 per month subscriptions.

Even if Netflix grew its global subscribers by 150 million, that represents just $18 billion in total revenue at $10 per month. The U.S. digital ad market alone could increase by twice as much over the next five years as ad budgets shift to digital.

That's why Facebook and Google stand to benefit more than Netflix from the decline in TV viewership.

Suzanne Frey, an executive at Alphabet, is a member of The Motley Fool's board of directors. Adam Levy has no position in any stocks mentioned. The Motley Fool owns shares of and recommends Alphabet (A and C shares), Facebook, and Netflix. The Motley Fool has a disclosure policy.