PKM & Obsidian Workflows

How to Import a YouTube Transcript into Obsidian with YAML Frontmatter

Published 2026-11-25 · 6 min read · Verified against CleanTranscript browser formatters
Direct Answer

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.

1. PUBLIC YOUTUBE URLyoutube.com/watch?v=...youtu.be / shorts / live• Reads real caption tracks• Zero login or extension• Local browser export2. OBSIDIAN YAML + MD---title: "Talk: Part 1"source: "https://..."channel: "Creator"video_id: "jNQXAC9IVRw"tags: [youtube-transcript]---Escapes quotes & colons safely3. OBSIDIAN VAULT READY# Talk: Part 1- **[00:01]** First cue...- **[01:05]** Key point...Dataview / Bases queryableDrop .md straight intoyour Vault / References folder
End-to-end Obsidian archival flow: converting raw YouTube caption segments into valid YAML Properties plus structured Markdown notes without browser extensions.

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)

  1. Copy the public YouTube URL (watch?v=, youtu.be/, /shorts/, or /live/).
  2. Open CleanTranscript YouTube to Markdown and paste the URL.
  3. 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.
  4. Click MD to download the .md file 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
Need clean prose for AI summaries instead? Toggle timestamps off on our YouTube to TXT page or see our timestamp removal guide to save 10.9%–13.8% of raw characters before pasting into ChatGPT or Claude.

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