Citizens from the United States, Canada, Mexico, Australia, Japan, China and India need to apply for a visa before leaving your country.
Application can be made online on the website of the Ministry of Foreign Relations (https://scedv.serpro.gov.br/frscedv/index.jsp). Please check with the Brazilian Embassy in your country for more information.
