Look at these sentences:
N'importe qui peut entrer chez toiAnyone can get into your house
Elle fait confiance à n'importe quiShe trusts anyone
Juliette et Marie parlent à n'importe quiJuliette and Marie talk to anyone
Note that "n'importe qui" literally means "no matter who", and is used in French to say "anyone".
You use it ONLY in affirmative sentences to emphasise that the identity of the person referred to doesn't matter (ANY one).
You would use quelqu'un to express 'anyone' in a question.
Il y a quelqu'un ici ?Is there anyone here?
(See also Quelqu'un, Quelqu'un d'autre = Someone, Someone else (indefinite pronouns) in French)
You would use personne in a negative sentence.
Non, il n'y a personne.No, there isn't anyone.
Want to make sure your French sounds confident?
We’ll map your knowledge and give you free lessons to focus on your
gaps and mistakes. Start your Braimap today »