Depending on your context, to ask someone how they are in German would be as follows:
inf. Wie geht's dir? (How are you?)
form. Wie geht es Ihnen? (How are you?)
Alternatively you could ask a more informal question which is more similar to Are you okay?
inf. Geht's dir gut? (Is it going good?/Are you doing good?)
Chat with our AI personalities