We study Moser's theorem concerning embedding of Sobolev spaces into exponential Orlicz spaces. In case of the critical power, we find the borderline Young function so that the Moser's embedding holds for the corresponding Orlicz-Sobolev space.