How do you flirt with a girl without coming off as creepy?

I’ll be honest when Im around pretty women I lose all confidence. I feel like If I were to try to flirt with a girl I’d be awkward and I’m afraid that it might come off as creepy. Can someone give me some tips?
How do you flirt with a girl without coming off as creepy?
Post Opinion