TikTok owner ByteDance would prefer to shut down its loss-making app rather than sell it if the Chinese company exhausts all legal options to fight legislation to ban the platform from app stores in the United States, four sources said.

The algorithms TikTok relies on for its operations are deemed core to ByteDance's overall operations, which would make a sale of the app with algorithms highly unlikely, said the sources close to the parent.

TikTok accounts for a small share of ByteDance's total revenues and daily active users, so the parent would rather have the app shut down in the U.S. in a worst-case scenario than sell it to a potential American buyer, they said.