Formal:
* 晚安 (wǎn ān): This is the most common and polite way to say "goodnight". It literally means "peaceful evening".
Informal:
* 睡了 (shuì le): This is a more casual way to say "goodnight" and literally means "I'm going to sleep".
* 早点休息 (zǎo diǎn xiū xi): This means "rest early" and is another informal way to say "goodnight".
Other options:
* 好梦 (hǎo mèng): This means "sweet dreams" and can be used in both formal and informal contexts.
The best way to choose the right phrase is to consider your relationship with the person you're talking to and the context of the conversation.