The meeting will continue until 5 o'clock.
Yesterday I studied until late at night.
Marks a spatial endpoint or destination: movement or extent reaches that place or person.
It's a 10-minute walk to the station.
Does this bus go as far as the airport?
Used in set expressions like ~までだ or ~までのことだ to mean 'it's just that' or 'merely', often implying a limited or resigned conclusion.
I just checked to be sure, that's all.
If I can't do it, I'll just give up.
I work from 9 a.m. until 5 p.m.
I walked as far as the station.
He went so far as to take out a loan to buy a car.
It's just that I thought so.
へ indicates the direction something moves toward, whereas まで stresses reaching or extending up to a specific endpoint.
に simply marks a point of arrival or time, while まで emphasizes the continuous extent leading up to that point.
まで shows a continuous extent up to a point in time or space (e.g. 5時まで待つ = wait until 5:00), while までに marks a deadline by which a single action must be completed (e.g. 5時までに来る = come by 5:00).