"Happy" was written and produced by Pharrell Williams. Williams is the lead vocalist throughout the song, while the backing vocals are performed by Rhea Dummett, Trevon Henderson, Shamika Hightower, Ashley L. Lee, Jasmine Murray and Terrence Rolle. The song was recorded at Circle House Studios in Miami, Florida in 2013 and later mixed at Music Box Studios in Atlanta, Georgia.