Khalid wrote the song with producers Digi and Chrome Sparks.
[1] Before the release of the song, Khalid sent it to his mother via text message.
Khalid jokingly replied: "Makes me wanna do the running man".
[2] "Up All Night" is an "ethereal R&B jam" that is set in the key of C major.
[5] A "mellow" song, he "sings over a spare, bouncy beat" before the song rises even further: "Take me around the world and back again / As I'm searching for my soul out there / Oh, there's something that I'm wondering / Where I'm going when my story ends".