The safest way is to use a trusted converter site and avoid downloading unknown software. I usually use
Flvto Link
for basic YouTube to MP3 conversions because it’s straightforward and doesn’t require account signup. Just make sure you avoid clicking ads and always scan downloaded files if you use any online converter.
A simple option is
YT1s.is
, which lets you convert supported YouTube videos to MP3 through a web browser. Just make sure you have permission to download the content and follow applicable copyright rules.