How to Extract Text From a YouTube Video
YouTube is full of text that exists only as pixels: code in programming tutorials, formulas on lecture slides, book lists in video essays, settings walkthroughs, workout plans. Pausing and retyping it is slow and error-prone — one wrong character in a copied command and nothing runs. Here's how to extract text from a YouTube video accurately in a couple of minutes.
Step 1: capture the segment with text
OCR needs the video file itself, so first get the relevant part onto your phone:
- Screen-record it. Open Control Center, start a screen recording, play the segment (bump quality to the highest playback resolution for crisper text), then stop. iPhone screen recordings are high-resolution and OCR reads them very well.
- Or use an already-saved video — your own uploads, downloads for offline viewing where permitted, or clips someone sent you.
Only record what you need: a 30-second segment with the code on screen scans faster than a full 40-minute lecture, and the Extract Text From Video app works best with clips up to about 15 minutes.
Step 2: scan it with AI OCR
- Open Extract Text From Video (free on the App Store) and import the recording from your library.
- The AI OCR reads every frame and detects all on-screen text automatically — you don't scrub or hunt for the right moment.
- Text recognition runs on your device. Your recording is never uploaded, and recognition works without a connection.
Step 3: copy, export, or translate
- Copy code and commands straight into Notes, a terminal, or an editor — character-accurate, no typos.
- Export to TXT to turn a slide-heavy lecture into study notes in one file.
- Translate foreign-language tutorials into one of 15 languages on iPhone and iPad (translation guide).
Why not YouTube's transcript button? Transcripts capture what the presenter says, not what's shown. Code on screen, slide bullets, and text overlays never appear in a transcript — that's OCR territory. Confused about the difference? See OCR vs transcription.
Who uses this most
Developers following tutorials, students turning recorded lectures into notes, researchers pulling data from conference talks, and anyone who's ever typed a 40-character URL off a slide by hand. The same workflow covers any screen recording, not just YouTube.
Never retype from a tutorial again
Extract Text From Video — AI OCR for videos and photos, on-device and private, with TXT export. Free on the App Store.
Download for iPhone free