yt-dlp Filename Templates: Windows Examples & GUI Presets
Copy yt-dlp filename templates for titles, uploader folders, video IDs and upload dates. Learn how to keep extensions correct and reuse patterns in HalalDL presets.
yt-dlp filename templates are one of the most useful — and most intimidating — parts of the engine. In the CLI you pass `-o` (or an output template in a config file) every time you care about naming. In a GUI, that pattern should live next to the rest of the download intent: format, subtitles, save location, and start mode.
What a filename template actually is
A template is a pattern with tokens like `%(title)s`, `%(uploader)s`, `%(id)s`, and `%(ext)s`. yt-dlp fills those tokens from metadata after it understands the URL. Get the pattern right once and every repeat job stays consistent.
- Keep library folders predictable without hand-renaming
- Encode show/channel identity in the filename when you want it
- Avoid collisions when titles repeat across uploads
- Make multi-output jobs (video + sidecars) easier to spot later
Why CLI templates frustrate everyday Windows users
- You retype or re-copy the same `-o` string for common jobs
- Shell quoting on Windows PowerShell is easy to get wrong
- A typo in `%(ext)s` can leave files without a proper extension
- The naming rule is disconnected from the preset/format choice in your head
How HalalDL carries templates inside presets
HalalDL 0.4.1 moves filename templates into custom presets. That means the naming rule travels with the preset instead of living only in your shell history. When you pick the preset for a repeat job, the template comes along.
- Custom presets can include their own yt-dlp-style filename template
- Missing extension tokens are repaired so files keep a proper suffix
- The safer naming path applies to regular downloads and Instagram fallback jobs
Practical patterns to start with
Readable filenames
- Template
- %(title)s.%(ext)s
- Why it helps
- Use the media title and actual extension
Uploader folders
- Template
- %(uploader)s/%(title)s [%(id)s].%(ext)s
- Why it helps
- Group files in an uploader folder
Include the video ID
- Template
- %(title)s [%(id)s].%(ext)s
- Why it helps
- Distinguish files with the same title
Upload dates
- Template
- %(upload_date)s - %(title)s.%(ext)s
- Why it helps
- Put the source upload date before the title
Filename templates for the desktop app or yt-dlp output setting. Source metadata determines the available fields.
| Intent | Template | Why it helps |
|---|---|---|
| Readable filenames | %(title)s.%(ext)s | Use the media title and actual extension |
| Uploader folders | %(uploader)s/%(title)s [%(id)s].%(ext)s | Group files in an uploader folder |
| Include the video ID | %(title)s [%(id)s].%(ext)s | Distinguish files with the same title |
| Upload dates | %(upload_date)s - %(title)s.%(ext)s | Put the source upload date before the title |
Paste only the pattern into the desktop preset's filename-template field; the -o flag belongs to the command line. These patterns do not apply to the hosted /fetch tool.
Official yt-dlp output-template documentation
Extension safety matters more than people think
If a template omits `%(ext)s`, some workflows can produce files that are hard to open or associate. HalalDL’s repair path keeps extension handling safe when the template leaves the extension token out — one less footgun versus raw CLI experiments.
FAQ
Why does a filename contain NA?
The source did not supply that metadata field. yt-dlp uses NA for missing fields by default; choose a template using fields available for that source.
Does ending a template in .mp4 convert the file?
No. A filename does not select or convert the media format. Keep %(ext)s in the template so the name reflects the actual output extension.
Do I need %(ext)s in every template?
It is still good practice, but HalalDL repairs missing extension tokens so files keep a usable suffix when a template leaves the extension out.
Are templates only for custom presets?
In HalalDL 0.4.1+, custom presets can carry their own filename template so the naming rule travels with the rest of the preset intent.
Related guides
What changed in HalalDL 0.4.1 (and why)
A deeper look at HalalDL 0.4.1: preset filename templates, compact quick panel, settings persistence, finished cards, and latest-result spotlight.
Tray and quick panel workflow for repeat downloads
How HalalDL’s compact quick panel keeps URL, preset, save location, and the download action reachable on everyday Windows layouts.
Best yt-dlp GUI for Windows (2026) — honest comparison
Compare HalalDL, Parabolic, Open Video Downloader, Tartube, Stacher, and yt-dlp itself using dated official sources and honest workflow tradeoffs.