まで vs までに: "until" and "by" in Japanese

まで (made) means an action continues up to a point; までに (made ni) sets a deadline. The difference, with the verbs that tell you which to use.

まで (made) and までに (made ni) differ by one particle and mean different things. まで is "until": the action continues all the way to that point. までに is "by": a deadline, before which something happens once.

The short version

まで までに
Meaning until by (a deadline)
The action continues the whole time happens once, at some point before
Example 5時まで働きます。 I work until 5. 5時までに帰ります。 I will be home by 5.

The test to run

Ask whether the verb is something you keep doing (待つ, 働く, 寝る, 勉強する) or something that is done once (出す, 着く, 終わる, 帰る).

Common traps

まで also marks a distance or range: 東京から大阪まで (from Tokyo to Osaka). That use never takes に. And a deadline with a continuing verb needs rephrasing: you can finish reading by Friday (金曜日までに読み終わる), but you read until Friday (金曜日まで読む).

Study the points: 〜まで · 〜までに · 〜から〜まで