Formal:
* Boa noite (pronounced "bo-ah no-ee-chi") - This is the most common and polite way to say goodnight.
Informal:
* Boa noite (pronounced "bo-ah no-ee-chi") - You can also use the formal "Boa noite" in informal settings.
* Até amanhã (pronounced "ah-tay ah-ma-nyã") - This translates literally to "Until tomorrow" and is a common way to say goodnight to friends and family.
More informal:
* Noite boa (pronounced "no-ee-chi bo-ah") - This is a more casual way to say goodnight.
* Durma bem (pronounced "door-mah bem") - This translates to "Sleep well" and is a very friendly way to say goodnight.
The best option will depend on the situation and your relationship with the person you're talking to.