Although YouTube maintains that downloading music from its platform violates its terms of service, converting a video to mp3 is not illegal. It is, however, illegal to download a copyrighted video from YouTube.