Quick answer
¿Cómo te llamas?
the everyday version
¿Cómo se llama?
the alternative — see below for when
Which one to use
¿Cómo te llamas? is the informal version, used with people your own age, classmates, and anyone in a relaxed setting. It literally asks “how do you call yourself”.
¿Cómo se llama? is the same question in the formal usted form. Use it with officials, older strangers, and in professional settings. To answer, say me llamo plus your name.
All the versions
Where you are matters
The forms are the same everywhere, but in Argentina and Uruguay you will hear the <b>vos</b> version <b>¿cómo te llamás?</b> with the stress on the last syllable.
Check yourself
You are asking an older official for their name. Which form do you use?