Twitter on Thursday reported its first-ever quarterly profit, in a key milestone for the social network which has been lagging for years against fast-growing rivals.
San Francisco-based Twitter said it earned $91mn in the fourth quarter, the first positive net income since going public in 2013.
Revenue was up 2% from a year ago to a better-than-expected $732mn. 
The number of monthly active users was 330 million, unchanged from the prior quarter but up 4% from a year earlier.
While Twitter has built a solid core base of celebrities, politicians and journalists, it has failed to achieve the broader appeal of Facebook and other social platforms, hurting its ability to bring in ad revenues.
Twitter shares leapt 26% to $33.86 in pre-market trade on the upbeat news. The shares this month jumped above the 2013 offering price of $26 for the first time since late 2015.
The profitability is an important achievement for Twitter, which has lost money consistently since its public offering, sparking speculation on whether it needed to sell itself to keep operating.
Chief executive Jack Dorsey welcomed "a strong finish to the year," and added "I'm proud of the steady progress we made in 2017, and confident in our path ahead."
The network has stepped up efforts to boost its user base and engagement, adding streaming video partnerships, doubling the character limit on tweets to 280 and making it easier to create "tweetstorms" by stringing messaging together.
Dorsey told a conference call that by relaxing the limits, "it minimises some of the complexities" of using the platform and added, "more importantly it is enabling people to be more expressive about what's on their minds."
Twitter's monthly user base of 330 million is far behind the two billion of Facebook, but Twitter said its daily active user base -- for which it has not offered a specific number -- grew in double digits.
Both Twitter and Facebook have stepped up efforts to crack down on "bots" and other efforts to manipulate their platforms to deflect criticism from lawmakers and others concerned about the spread of disinformation.