Square Inc. has been working to simplify mobile payments, and now it's trying to do the same with buying stocks.

The San Francisco-based company's Cash App announced in a series of tweets Thursday that it is giving its users the ability to buy and sell stocks, with zero fees. Cash App Investing will offer fractional purchases, where investors can buy small or set amounts - say, $20 in Berkshire Hathaway Inc. - rather than a whole, more expensive share.

Introducing #CashAppInvesting. Now you can instantly buy stock in your favorite companies with as little as $1 with Cash App. 📈 pic.twitter.com/H5vEsqEPKX

- Cash App (@CashApp) October 24, 2019

Square said the feature is meant to lower the barrier for investing, and that it's aimed at younger investors who are getting started at playing the market. It will offer just basic buying and selling of stocks and ETFs, as opposed to more complex trades such as option margins.

"Really proud of the team for making buying stocks and building wealth accessible to more people," Square Chief Executive Jack Dorsey said Thursday via his other company, Twitter Inc.

Also see: Charles Schwab's move to sell fractions of shares could be a 'game-changer' for investors

Square said the feature will be rolled out to customers in the coming weeks. Its brokerage services will be done in-house through Cash App Investing LLC.

Square is joining a growing crowd of companies lowering the barriers to investing. Charles Schwab Corp. announced earlier this month it will cut commissions on trades to zero, and TD Ameritrade Holding Corp. and E-Trade Financial Corp. followed suit. Schwab has also said it will start offering fractional trades.

Square generated buzz for the Cash App when it started allowing bitcoin purchases through the service two years ago, but investors were surprised when the company first gave a peek into the financials behind that feature, which showed only a slim margin related to bitcoin activities.

But Square's main goal doesn't seem to be maximizing revenue. Rather, the company is thought to be packing features into the Cash App so that consumers will start storing money there and using an associated debit card to make purchases, allowing Square to collect transaction fees on the back end when users swipe their cards in store or buy something online.

But the company has also been teasing bigger dreams for the product for more than a year. "Anything you do today with a bank account, you should look to Cash App to begin to emulate more and more of that," Square's former chief financial officer said at a conference last year.

Square shares are up 10% year to date, compared to the S&P 500's 20% gain in 2019.

MarketWatch reporter Emily Bary contributed to this report.

tag