Who needs a visa?
If you are a student from an EU-country or from Norway, Iceland, Liechtenstein, or Switzerland, relax. You don’t need a student visa but still have to register for residency once you are in Germany. Please check in advance what kind of documentation you need in addition to your passport/ID.
If you are from Australia, Canada, Israel, Japan, New Zealand, the Republic of Korea, the USA, Andorra, Brazil, El Salvador, Honduras, Monaco, and San Marino, please check with the Federal Foreign Office. You may be exempt from a student visa but make sure that regulations haven’t changed in the meantime. You will need almost the same documentation when you register for residency in your new hometown as you would for a student visa.
Students from all other countries are likely to have to apply for visa. As a first step, ask the International Office at your chosen university in Baden-Württemberg whether you need a visa. If you do, contact the German mission such as the embassy or consulate in your country to find out what documents you need to submit.