Depends on the situation. Try searching for "filtering" and you'll find all kinds of opinions on this subject.
If there's a bike lane present I'll usually use it to pass on the right (just be careful at driveways/intersections and watch for cars in the lane to your left moving over to park/drop off passengers/whatever).
If there's no bike lane, the right lane is narrow, and there are multiple same-direction lanes I prefer to lane split, since it's more of an expected maneuver (motorcycles do it) than trying to squeeze between other vehicles and the gutter, and it gets me away from right hook scenarios and cars pulling out of driveways.
If this thread becomes as active as many on this topic you'll see many opinions. An important thing to remember is that you need to stay within your comfort zone and if something feels dangerous to you it probably is, so don't do it

.