54% of the global population used a safely managed sanitation serivce in 2020.
By the way, 1.7 billion people still do not even have basic sanitation services, such as a private toilets or latrines.
Source: https://www.who.int/news-room/fact-sheets/detail/sanitation