Barcelona is a pretty safe city to walk around in, even late at night. However, always walk in a group as it is a bit safer like that. Stick to the main and popular streets to avoid any trouble.