Katy Perry thinks writing a hit song is like falling in love.

The 'Part of Me' singer - who recently split with guitarist John Mayer after eight months of dating and was previously married to Russell Brand - believes realising she has a hit on her hands is the same as the rush of excitement she gets when she first falls for someone.

She said: ''Yes [I know when I've written a hit]. It's a special feeling you get like finding the person you love. If I could bottle that feeling and give you a whiff, I would.''

Katy, 28, writes all her songs from the heart, but admits the words to one of her most popular songs, 'Firework', don't hold particular significance.

She added to Britain's OK! magazine: ''The lyrics don't mean anything. It's the most important song I've written for myself. It helps the party, it helps you get dressed, it helps you fall in love and it helps you notice when you're down and out and that's the best a song can do. When I'm feeling bad, I need music to help me through.''