Jar of Hearts was inspired by a personal experience of Christina Perri, reflecting the pain and emotional turmoil she felt after a difficult breakup. The song served as a form of catharsis, helping her to cope with her feelings and move forward.