Formal:
* Pourriez-vous épeler votre nom, s'il vous plaît ? (Could you spell your name, please?)
* Pourriez-vous me dicter l'orthographe de votre nom ? (Could you dictate the spelling of your name?)
Informal:
* Peux-tu épeler ton nom ? (Can you spell your name?)
* Comment s'écrit ton nom ? (How do you spell your name?)
More specific:
* Comment s'orthographie votre prénom ? (How do you spell your first name?)
* Comment s'orthographie votre nom de famille ? (How do you spell your last name?)
Note:
* The French word for "spell" is "épeler."
* "S'il vous plaît" is polite and is used in formal situations.
* "Ton" is used when addressing someone informally (like a friend). "Votre" is used for someone you don't know well.
You can choose the phrase that best suits the context and your relationship with the person.