Generation X continues to struggle with debt while millennials and baby boomers are making positive strides, according to a new report. Experian's State of Credit report paints a relatively healthy picture for Americans, with the average credit score rising from 673 to 675 over the 12 months ending last June, the highest since 679 in 2007, before the Great Recession began. Consumer confidence is up sharply and the Federal Reserve said this week that credit card debt hit a new record in November. That's a good sign for consumer spending but could spell trouble down the road if the economy and labor market weaken. More from USA Today:

Minneapolis tops list of cities with best average credit score, Greenwood, Miss., at the bottom

Retirement crisis: 37% of Gen X say they won't be able to afford to retire

Credit card debt hits new record, raising warning sign

Some age groups are handling debt and managing their creditworthiness better than others, according to the credit reporting agency. Here's a rundown. (Note: the precise range of generations is often debated. This story reflects how Experian defined the ranges for its research).

Generation Z (Age 18-20)

Average credit score: 634 This group is just establishing credit but is off to a good start. They have an average of just 1.44 credit cards per person, less than half the U.S. average, and a typical credit card balance of $2,047, less than a third of the national average. Yet they seem to be taking on more student loan debt than prior generations at their age as college tuition costs continue to ratchet higher, says Kelley Motely, Experian's director of analytics.

Millennials (Age 21-34)

Average credit score: 638 Many graduated from college during or shortly after the Great Recession, which ended in 2009. That forced many to take lower-paying jobs, setting back their careers. But they're digging out. Their average credit score climbed four points from 2016 — the most of any generation — to 638 and they shaved their overall average debt by 8 percent to $222,000. They've also increased their average mortgage debt by 6 percent to $198,303, giving many who had put off home purchases an opportunity to build wealth. "The economy has improved and they are positioned to improve their financial standing," says Rod Griffin, director of public education for Experian.

Generation X (age 35-49)

Average credit score: 658 They're saddled with the highest average mortgage debt of all the age groups at $231,774. Many probably bought homes at the peak of the housing bubble, including expensive houses in higher-income neighborhoods that boasted good schools for their kids, Griffin says. Home values plummeted during the housing crisis before recouping much of those losses in recent years. This group also has a high rate of late debt payments at 0.54 percent and the most average non-mortgage debt at $30,334. Still, they too are making gains. Their average credit score rose 3 points from the prior year to 658.

Baby boomers (age 50-70)

Average credit score: 703 They still have substantial mortgage debt at an average $188,828, but that's less than Gen X as many Boomers pay off mortgages or downsize their homes. They're also in pretty good financial shape, with a low late payments rate of just 0.3 percent. The group's average credit score increased to 703 from 700 over the year.

Silent generation (age 70-plus)