Twitter is making a major shift in how it counts characters in tweets, giving users more freedom to compose longer messages.

The social media company will soon stop counting photos and links as part of its 140-character limit for messages, according to a person familiar with the matter. The change could happen in the next two weeks, said the person who asked not to be named because the decision isn't yet public. Links currently take up characters, even after Twitter automatically shortens them. The company declined to comment.

It is a step in a larger plan to give users more flexibility on the site. Chief Executive Officer Jack Dorsey said in January that the company was looking for new ways to display text on Twitter, and would experiment based on how people use the service. For example, some people tweet screenshots of longer text in articles, or send many tweets one after the other to tell a story.