No! It is not illegal to wear headphones while riding a bike. But in the some states in United State of America consider illegal to motorcycle Bluetooth headset for music. Because some of their senses distract while riding motorcycle, bike, car, etc.