End Year Stock Haversting

I understand that one may balance stock losses against capital gains, but I don't really want to sell any of my stocks that are performing well. My question is, whether it would advantageous to sell my underperforming long term stocks at a loss to lower my tax liability?