How To Convert Youtube Videos To Mp3?
The only reliable, safe method in 2026 is yt-dlp + ffmpeg. Most browser-based converter sites are adware traps or have been shut down. Here's how to do it cleanly from the command line — and what the legal limits are.
Every Wednesday. 28,400+ operators. Zero fluff.
✓ Check your inbox — click the confirmation link to complete sign-up.
✓ You're subscribed!
✓ You're already on the list.
Table of contents
Open Table of contents
What changed since this post was first written
When I originally wrote this in 2022, there were half a dozen web-based “YouTube to MP3” converters that actually worked. By 2026, almost all of them are gone, broken, or dangerous:
- Stream-ripping sites faced coordinated legal action. The RIAA and several major labels have pursued litigation against stream-ripping services for years. Many well-known sites were taken down or geo-blocked as a result of that pressure.
- Google’s own enforcement blocked the API access and anti-bot protections that these sites relied on. Several services that were working in 2023 stopped resolving video URLs entirely by 2025.
- The ones still up are mostly adware. The sites that survived tend to be riddled with fake download buttons, deceptive redirects, and bundled malware installers. I won’t recommend them.
The original youtube-dl tool also became sluggish and poorly maintained. Its active fork, yt-dlp, is the community standard now — it’s actively maintained, handles YouTube’s current anti-bot measures, and is the tool I actually use.
Why convert YouTube audio at all in 2026?
Before getting into the how, worth being direct about when this is actually appropriate:
- Your own content — you uploaded it, you want a local backup. Fully fine.
- Creative Commons or public domain audio — check the license; if it’s CC-licensed for download, go ahead.
- Podcasts and talks hosted on YouTube — many creators also publish RSS feeds or direct downloads; check first.
- Music you don’t own — this is where it gets legally murky (see FAQ below).
If you just want offline music, YouTube Premium is the cleanest path: it includes offline downloads inside the YouTube app and YouTube Music, and you’re not violating anyone’s terms. For personal archiving of your own uploads or legitimately licensed audio, yt-dlp is the right tool.
The actual method: yt-dlp + ffmpeg
This is what I use. It runs on macOS, Linux, and Windows.
Step 1: Install yt-dlp
On macOS with Homebrew:
brew install yt-dlpOn Linux (most distros):
pip install yt-dlpOn Windows, download the .exe from the yt-dlp GitHub releases page and add it to your PATH.
Step 2: Install ffmpeg
yt-dlp uses ffmpeg to convert the audio stream. On macOS:
brew install ffmpegOn Ubuntu/Debian:
sudo apt install ffmpegOn Windows, download ffmpeg from ffmpeg.org and add the bin folder to your PATH.
Step 3: Extract the audio
yt-dlp -x --audio-format mp3 --audio-quality 0 "https://www.youtube.com/watch?v=VIDEO_ID"What each flag does:
-x— extract audio only (don’t keep the video)--audio-format mp3— convert to MP3 using ffmpeg--audio-quality 0— best quality (VBR ~245 kbps)
The file lands in your current directory with the video title as the filename.
Batch download a playlist
yt-dlp -x --audio-format mp3 --audio-quality 0 "https://www.youtube.com/playlist?list=PLAYLIST_ID"yt-dlp handles the pagination automatically. It will skip already-downloaded files if you run the command again.
Add metadata (optional but useful)
yt-dlp -x --audio-format mp3 --audio-quality 0 --add-metadata "URL"This embeds the title, uploader, and thumbnail into the MP3’s ID3 tags so your media player can display them.
Keeping yt-dlp working
YouTube occasionally rolls out changes that break yt-dlp temporarily. When downloads start failing, update first:
yt-dlp -UThat self-update command pulls the latest release. The maintainers typically push a fix within a day or two of YouTube breaking something.
Why I’m not recommending browser-based converters
I originally listed ByClick Downloader, 320YTmp3, MyConverters, Mp3Download, YTMp3, and DVDVideoSoft. Here’s where things stand:
- Several of these domains now redirect to unrelated services or show blank pages.
- The ones still active serve aggressive ad overlays with fake “Download” buttons that install browser extensions or worse.
- DVDVideoSoft still exists but the free tier is heavily crippled and pushes paid upsells at every step.
I’m not linking to any of them. If you want a GUI-based tool and don’t want to use the command line, 4K Video Downloader+ has a reasonable track record, though verify its current status before installing.
Summing it up
In 2026, yt-dlp + ffmpeg is the only combination I can recommend without reservation. It’s open source, actively maintained, free, and produces clean output without adware. The command is three flags and a URL.
If you’re extracting audio you own or have explicit rights to, this is a clean workflow. If you’re ripping music you’d otherwise buy, understand that you’re in legal gray (or red) territory — see the FAQ below.
This guide is part of alejandrorioja.com — written by Alejandro Rioja, who now builds AI agent systems for founders. Including the agent that keeps this site current. How it works →
Updated for May 2026
YouTube and the broader video-download tools landscape changed materially in 2024–25:
- Many third-party downloaders died after Google’s August 2024 enforcement wave (4K Video Downloader and y2mate variants got hit hardest in the US/EU). Open-source
yt-dlpstill works. - YouTube Premium hit ~125M paying subs by mid-2025 — the official “download” inside the app is the path of least resistance now.
- YouTube Music absorbed Google Play Music’s last holdouts in 2024; playlist export now goes through Music’s library.
- For creators: Shorts revenue share improved meaningfully (ad share went live for all eligible Shorts channels in early 2024) — see ~$0.04–$0.07 RPM as a reasonable 2026 benchmark.
The how-to in this post still works for the cases it covers; just verify the tool you pick is still up before you commit a workflow to it.
YouTube to MP3 — 2026 FAQ
Is it legal to convert YouTube videos to MP3?
It depends on what you’re converting. YouTube’s Terms of Service prohibit downloading content without explicit permission from YouTube or the rights holder. Beyond the ToS, extracting copyrighted audio (music, for example) you don’t own violates copyright law in most jurisdictions — the fact that the video is publicly viewable doesn’t grant you a license to create a local copy. You’re on solid ground if you’re archiving your own uploads, downloading Creative Commons-licensed material, or the creator has explicitly given permission. For everything else, streaming services like YouTube Music, Spotify, or Apple Music are the legally clean path.
Was youtube-dl shut down or is it still working?
youtube-dl was briefly removed from GitHub in 2020 following an RIAA takedown request, but it was restored. It continues to exist but development has slowed significantly. The community forked it into yt-dlp, which is updated frequently and handles YouTube’s current bot-detection measures. I use yt-dlp exclusively — there’s no good reason to use the original anymore.
Why do so many YouTube-to-MP3 websites have fake download buttons?
These sites monetize through advertising. The legitimate “download” button is often buried among several large fake buttons that trigger ad clicks, browser extension installs, or redirect chains. Some deliver actual malware. The sites are built to maximize ad revenue from users who aren’t technical enough to distinguish the real button from the decoys. The command-line approach via yt-dlp has none of this — the output is exactly what you asked for.
What’s the best audio quality I can get?
YouTube streams audio at a maximum of 128 kbps for most videos (AAC or Opus codec). Some videos have higher-quality streams available, up to 256 kbps Opus. When you run yt-dlp with --audio-quality 0, it selects the best available source. Converting to MP3 at that point is a lossy-to-lossy transcode — you won’t get better quality than the source stream, and re-encoding always introduces some degradation. If audio quality matters, use --audio-format opus or --audio-format m4a to avoid the extra transcode step.
Related reading:
Every Wednesday. 28,400+ operators. Zero fluff.
✓ Check your inbox — click the confirmation link to complete sign-up.
✓ You're subscribed!
✓ You're already on the list.
Get the AI playbook in your inbox
Every Wednesday. 28,400+ operators. Zero fluff.
Check your inbox.
We sent you a confirmation email — click the link inside to complete your subscription. Check spam if you don't see it within a minute.
You're subscribed.
Welcome — the next edition lands in your inbox soon.
You're already on the list — look for it every Wednesday.