You will get a UTR when you register with HMRC for self-employment, this can be done on HMRCs online registration portal.