In two experiments, we examined the effects of task and location switching on the accuracy of reporting target characters in an attentional blink (AB) paradigm. Single-character streams were presented at a rate of 100 msec per character in Experiment 1, and successive pairs of characters on either side of fixation were presented in Experiment 2. On each trial, two targets appeared that were either white letters or black digits embedded in a stream of black letter distractors, and they were separated by between zero and five items in the stream (lags 1-6). Experiment 1 showed that report of the first target was least accurate if it immediately preceded the second target and if the two targets were either both letters or both digits (task repetition cost). Report of the second target was least accurate if one or two distractors intervened between the two targets (the U-shaped AB lag effect) and if one target was a letter and the other a digit (task switch cost). Experiment 2 added location uncertainty as a factor and showed similar effects as Experiment 1, with one exception. Lag 1 sparing (the preserved accuracy in reporting the second of two targets if the second immediately follows the first) was completely eliminated when the task required attention switching across locations. Two-way additive effects were found between task switching and location switching in the AB paradigm. These results suggests separate loci for their attentional effects. It is likely that the AB deficit is due mainly to central memory limitations, whereas location-switching costs occur at early visual levels. Task-switching costs occur at an intermediate visual level, since the present task switch involved encoding differences without changes in stimulus-response mapping rules (i.e., the task was character identification for both letters and digits).