The quickest and easiest way of applying for a residence permit to study at universities and colleges in Sweden is to apply online.
If you cannot, do not want to apply online or wish to study elsewhere than at university or college, you present the application documents at the Swedish embassy in person instead.