WASHINGTON—U.S. consumers demonstrated a renewed willingness to open their wallets for retailers in May, easing worries about a slowing economy heading into the summer.

Overall retail sales increased 0.6% last month, putting them 4.3% higher over the past year, the Commerce Department said Thursday. The strong gain after two sluggish months returned consumer spending to a pace that has helped power much of the four-year-old...