The US dollar's long decline may finally be coming to an end.

More investors—nervous about the global economic recovery and skeptical about how much further stocks can rise—are beginning to turn to the dollar as a safe haven. That has boosted the dollar's value in recent days and led to speculation that the rebound may continue, regardless of what the Federal Reserve does with interest rates.