に vs で: place particles in Japanese explained

に (ni) marks where something exists or arrives; で (de) marks where an action happens. The difference, with the verbs that decide it.

Both に (ni) and で (de) can follow a place, so 東京に and 東京で both translate as "in Tokyo". The verb decides which one is right.

The short version

に (ni) で (de)
Place where something exists or arrives where an action happens
Typical verbs いる, ある, 住む, 行く, 着く, 座る 勉強する, 働く, 食べる, 遊ぶ, 買う
Other uses time points (7時に), the person you give to or meet means and tools (バスで), cause (風邪で), scope (日本で一番)

Same place, different verb

The test to run

Ask whether the verb describes being there or getting there (に) or doing something there (で). Verbs of placing and sitting also take に: 机の上に本を置く, いすに座る.

Other uses of で worth knowing

Study the points: 〜に · 〜で · 〜に〜があります / います