18 countries in the world currently legally recognise a third sex or gender. Among these countries, the most commonly used third gender marker on paperwork such as passports or birth certificates is X.
@vagina_museum Germany refers to the legal third gender as "diverse" or "d" in short.