How to Import a YouTube Transcript into Obsidian with YAML Frontmatter
To import a YouTube transcript into Obsidian cleanly without breaking Properties, paste the public YouTube URL into CleanTranscript's YouTube to Markdown converter, switch Obsidian YAML on, and download the .md file into your vault. Every file includes double-quoted YAML frontmatter (title, source, channel, language, video_id, tags) and timestamped bullet points generated locally in your browser.
Why Standard Copy-Paste and Browser Clippers Break in Obsidian
Knowledge workers who archive lectures, podcasts, and technical talks in Obsidian hit three recurring problems when capturing YouTube transcripts:
- Broken YAML Properties: Many YouTube video titles include colons (
:), brackets, or double quotes (for example,CS50: Lecture 1 — "C"). Unquoted YAML frontmatter immediately causes Obsidian's Properties panel to throw a parse error. - Fragmented timestamp rows: Copying directly from YouTube's Show Transcript sidebar pastes every 3-second caption cue as two separate lines, bloating note length and breaking block references.
- Extension permissions and plugin churn: Community plugins and browser clippers periodically break when YouTube updates its DOM, or require broad tab-read permissions across every site you visit.
Comparison: 4 Ways to Save YouTube Transcripts into Obsidian
| Workflow | YAML Frontmatter | Timestamps | Setup / Account Required | Main Trade-off |
|---|---|---|---|---|
| CleanTranscript Web Exporter | Built-in toggle (quoted & escaped) | Toggle on (- **[MM:SS]**) or off |
None (runs in browser) | Requires public video with existing captions |
| Obsidian Web Clipper | Custom template variables | Raw text dump unless custom scripted | Browser extension install | Requires opening transcript panel first; timestamps often unformatted |
| Obsidian Community Plugins | Plugin-dependent | Varies by plugin | Install & maintain vault plugin | Can break when YouTube changes internal endpoints |
yt-dlp + MIT CLI |
Via --obsidian-yaml flag |
Deduplicates rolling .vtt cues |
Local Node.js 18+ & yt-dlp |
Command-line workflow; best for local archival batches |
Method 1: Export Obsidian YAML Markdown in One Click (No Login)
- Copy the public YouTube URL (
watch?v=,youtu.be/,/shorts/, or/live/). - Open CleanTranscript YouTube to Markdown and paste the URL.
- In the transcript header, switch Obsidian YAML to On. Keep Timestamps on if you want
- **[MM:SS]**markers, or toggle it off for cleaner reading notes. - Click MD to download the
.mdfile generated locally in your browser, then move it into your Obsidian vault folder (for example,References/YouTube/).
Exact YAML Frontmatter Schema Produced
Every exported file uses strict double-quoted string values with internal quotes escaped (\") so Obsidian Properties, Dataview, and Bases parse every field cleanly:
---
title: "Me at the \"zoo\""
source: "https://www.youtube.com/watch?v=jNQXAC9IVRw"
channel: "jawed"
language: "en"
video_id: "jNQXAC9IVRw"
tags:
- youtube-transcript
---
# Me at the "zoo"
- Source: https://www.youtube.com/watch?v=jNQXAC9IVRw
- Channel: jawed
- Language: en
## Transcript
- **[00:01]** All right, so here we are in front of the elephants.
- **[01:05]** The cool thing about these guys is that they have really long trunks.
Querying Imported Transcripts with Obsidian Dataview
Because every exported file carries consistent channel, video_id, source, and youtube-transcript tag properties, you can build an automatic index note inside Obsidian using Dataview:
```dataview
TABLE channel AS "Channel", language AS "Lang", source AS "Video"
FROM #youtube-transcript
SORT file.ctime DESC
```
Method 2: Offline Conversion for Existing yt-dlp .vtt Files
If you already downloaded rolling auto-captions locally with yt-dlp --write-auto-subs --skip-download, those .vtt files contain duplicate rolling lines and inline <c> timing tags. You can convert them offline using our zero-dependency MIT CLI (cleantranscript-cli on npm):
npm install -g cleantranscript-cli
yt-caption-clean captions.en.vtt -f md --obsidian-yaml --title "Talk Title" --url "https://www.youtube.com/watch?v=VIDEO_ID" > talk.md
Frequently Asked Questions
How do I import a YouTube transcript into Obsidian without installing a plugin?
Paste the public YouTube URL into CleanTranscript's YouTube to Markdown tool, turn on the Obsidian YAML toggle, click MD to download the formatted Markdown file locally, and drop it into your Obsidian vault folder.
Why do YouTube titles sometimes break Obsidian YAML frontmatter?
YAML treats unquoted colons (:) as key-value separators and unescaped quotes as syntax errors. CleanTranscript wraps title, source, channel, language, and video_id in double quotes and escapes internal quotes automatically so Obsidian Properties always parse cleanly.
Can I query exported YouTube transcripts in Obsidian Dataview or Bases?
Yes. Every Markdown export with Obsidian YAML enabled includes standardized title, source, channel, language, video_id, and tags (youtube-transcript) fields that work directly with Dataview tables and Obsidian Bases.
Does CleanTranscript work on private or caption-disabled YouTube videos?
No. CleanTranscript reads existing public creator-uploaded or auto-generated YouTube caption tracks only and does not transcribe raw audio or bypass private video restrictions.
How do I convert a rolling yt-dlp .vtt subtitle file into Obsidian Markdown?
Use the open-source MIT CLI package cleantranscript-cli (yt-caption-clean captions.en.vtt -f md --obsidian-yaml) to strip inline <c> tags, deduplicate adjacent rolling cues, and output clean Obsidian YAML Markdown offline.
More CleanTranscript Guides
NotebookLM YouTube Transcript Not Available: Why It Fails & Instant Workaround
Fix Google NotebookLM's "YouTube transcript not available" and failed import errors in under 30 seconds by exporting clean, timestamp-free TXT or Markdown sources locally in your browser.
TroubleshootingWhy Is YouTube Transcript Not Showing? 7 Real Causes & Fixes
Find out why the YouTube Show Transcript button is missing or blank across desktop, mobile, and Shorts—plus a 7-cause diagnostic table to tell UI bugs apart from videos with no captions.
Formatting & AI WorkflowsHow to Remove Timestamps from a YouTube Transcript
Remove timestamps and broken line breaks from any YouTube transcript in one click, or clean already-copied text with tested Regex patterns for VS Code, Google Docs, and ChatGPT.