Credit and debit cards are widely accepted in Barcelona, especially in larger establishments such as hotels, restaurants, and shops. However, it's always a good idea to carry some cash for smaller vendors and establishments that may not accept cards. Make sure to inform your bank or credit card company about your travel plans to avoid any issues with card usage.