YouTube to Mp3 converters, like YTMP3, work by extracting the audio track from a YouTube video and saving it as an independent audio file. This is done through a process called transcoding, where the original file is decoded to a raw format and then encoded again into the desired output format, in this case, MP3.
MYBZH.