NIM39310 | National Insurance Numbers (NINOs): Registration of a new NINO: Juvenile Registration: children who are being looked after by Social Services
From HM Revenue & Customs · National Insurance Manual
As the child approaches age 15 years and 9 months their social worker applies for a NINO on their behalf. Guidance is on the gov.uk website at: