Compare cars side by side to save time clicking backwards and forwards between them.
Maximum number of cars added to compare list.
We need your postcode in order to provide accurate search results.
The power switch could short-circuit, causing parts to overheat and potentially leading to a fire, the company said.
It is the latest in a string of recalls by the carmaker.
Toyota has already recalled some 10 million cars globally that were fitted withfaulty air bags linked to a number of deaths.
The defective window switch affects models including the Yaris model as well as the Corolla, Camry, RAV4, Highlander and others.
The recall only affects cars produced between 2005 and 2010.
Of the total, about 2.7 million cars were sold in North America, 1.2 million in Europe, and 600,000 in Japan, the company said.
The firm explained that modules in a switch related to the electric window might have been lubricated inconsistently during manufacturing.
Debris caused by wear from the electrical contact points can accumulate and cause a short-circuit.
This could in turn cause the switch to overheat and melt, potentially leading to a fire.
Toyota said it was not aware of any accidents caused by the glitch.
Source: BBC News