It is generally safe to walk at night in Barcelona though you should avoid doing it alone and in secluded areas. Some areas are safer than others. Stay in well-lit areas and avoid exploring abandoned streets and beaches after dark. Traveling with a group is better at night.