Yes, the tap water in Barcelona is safe to drink, but some visitors find it tastes slightly different than what they are used to. Bottled water is widely available if you prefer.