Three months before the November election, voters in New Hampshire, long one of the purple swing states in presidential elections, clearly favor Hillary Clinton over Donald J. Trump, according to a new poll. And another poll shows Mrs. Clinton holding a narrower lead in Florida.

New Hampshire voters who either prefer or lean toward Mrs. Clinton outnumber those who prefer or lean toward Mr. Trump by 47 percent to 32 percent, according to the poll, conducted for WBUR, an NPR station in Boston, by the MassInc Polling Group.

Gary Johnson, a Libertarian, was favored by 8 percent.

Mrs. Clinton’s standing represents a remarkable turnaround for a candidate who lost New Hampshire’s Democratic primary in February. Senator Bernie Sanders of Vermont clobbered her, 60 percent to 38 percent.

But against Mr. Trump, Mrs. Clinton does much better. While 48 percent say she is fit to be president, only 31 percent say that of Mr. Trump.