Maryland Code generally prohibits driving any kind of vehicle on the sidewalk under Title 21 of the Vehicle Laws.
The code lists bicycles as an exception only where permitted by local ordinance. Different counties and cities in Maryland have different rules so there is no easy general answer.
The best guide I have on local bike laws is here
If you are a bicyclist who was injured while riding on a sidewalk or a pedestrian injured by a bicyclist while walking on a sidewalk, your best bet is to contact a Maryland bicycle accident lawyer who is familiar with the bicycle law in the particular county or city where you were injured.
For more information visit