YouTube View Source Parser

Paste YouTube page source to extract video info, ytInitialPlayerResponse and playback JSON

Runs in your browser

  1. Open a YouTube video in your browser
  2. Right-click → View Page Source (or press Ctrl+U / Cmd+Option+U)
  3. Select all (Ctrl+A / Cmd+A), copy, then paste into the box above and click Parse

Examples

  1. Get a video's details

    Input

    The full page source of a YouTube video page

    Output

    The title, channel, duration and view count, plus the player and playback data as JSON.

Questions and answers

Why paste the page source instead of the video link?

The tool runs in your browser and does not fetch anything from YouTube, so it reads the data that is already inside the source you paste.

It says no data was found. What should I check?

Make sure you copied the source of a video page, not a channel or search page, and that you selected and copied all of it.

What is ytInitialPlayerResponse?

It is the data YouTube embeds in every video page, with details such as the title, length and available streams. The tool extracts it and shows it as readable JSON.

All Tools