~うちに・~ないうちに
Act before things change, or describe a change during an activity
You’ll be able to act while an opportunity lasts, use ~ないうちに for “before something happens,” and describe a change that develops during an ongoing activity.

暗くならないうちに、車に戻りましょう。
kuraku naranai uchi ni, kuruma ni modorimashou.
What do you think this sentence means?
Let’s return to the van before it gets dark.
Act while there is still time
~うちに means “while a state or opportunity continues.” ~ないうちに means “before something happens or changes.” The second clause is the action you want to complete in time.
学生のうちに、たくさん本を読みたいです。
gakusei no uchi ni, takusan hon o yomitai desu.
I want to read lots of books while I am a student.
忘れないうちに、メモします。
wasurenai uchi ni, memo shimasu.
I will write it down before I forget.
Choose the form that matches the meaning
Before うちに, use a state: a verb in ている form or a state verb such as いる, an い-adjective, a な-adjective + な, or a noun + の. For a clear “before,” use a verb’s ない form + うちに: 忘れないうちに. With an ongoing activity, ~ているうちに can also mean that an unplanned change gradually happens during it.
温かいうちに食べてください。
atatakai uchi ni tabete kudasai.
Please eat it while it is warm.
日本にいるうちに、京都へ行きたいです。
nihon ni iru uchi ni, kyouto e ikitai desu.
I want to go to Kyoto while I am in Japan.
音楽を聞いているうちに、眠くなりました。
ongaku o kiite iru uchi ni, nemuku narimashita.
While I was listening to music, I gradually became sleepy.
~うちに vs ~間に
Both place an action inside a period. ~うちに adds that you use the time before the situation changes; ~間に simply says when the action happened. Only うちに works with a negative for “before”: 忘れないうちに, not ×忘れない間に.
~うちに, while it lasts
子どもが寝ているうちに、部屋を片付けました。
kodomo ga nete iru uchi ni, heya o katazukemashita.
I tidied the room while my child was still asleep.
Uses the chance before the child wakes up.
~間に, during
子どもが寝ている間に、部屋を片付けました。
kodomo ga nete iru aida ni, heya o katazukemashita.
I tidied the room while my child was asleep.
Only says when the tidying happened, with no sense of a chance running out.
スープが冷めないうちに、どうぞ飲んでください。
suupu ga samenai uchi ni, douzo nonde kudasai.
Please drink the soup before it gets cold.
このコートは来週、元の値段に戻ります。安いうちに買っておこう。
kono kooto wa raishuu, moto no nedan ni modorimasu. yasui uchi ni katte okou.
This coat will return to its original price next week. I’ll buy it while it is cheap.
若いうちに、いろいろな仕事を経験したいです。
wakai uchi ni, iroiro na shigoto o keiken shitai desu.
I want to try different kinds of work while I am young.
7 more examples in the grammar path — free for a limited time.