YouTube Analysis

Takeout JSON or HTML: Which Watch History Export to Choose

Takeout sends watch history as HTML unless you pick JSON. Both hold the same events; HTML writes dates in your account's language. When each one is enough.

Published Updated By Small Web Apps

When you export YouTube history, Takeout gives you HTML unless you switch it to JSON. Both carry the same viewing events, but they write the timestamp very differently, and that one difference decides how far a time-based analysis can be trusted. If you only read one thing here: for the analyzer on this site either works when your account is in English or Portuguese. Choose JSON if it is in another language, or if you will process the file yourself.

What each format actually is

The JSON export is structured data. Every viewing event is an object with named fields, and the timestamp is an ISO 8601 string that carries its own UTC offset. There is exactly one way to read it, and every parser reads it the same way.

The HTML export is a rendered web page meant for a human to scroll. Entries live in elements with the class content-cell. Inside one of those, the word 'Watched ' is a bare text node sitting before the links, the first link is the video, a later link is the channel, and the date is whichever remaining text node happens to contain a four-digit year. Nothing is labelled; the structure has to be inferred from position.

The timestamp problem

Here is the part that catches people. In the HTML export, the date is written the way your Google account displays dates — in your account's language, with localised month names and a local timezone abbreviation.

So the same view might be written as 'Jan 5, 2026, 8:31:04 PM EST' for one account and '5 de jan. de 2026, 20:31:04 BRT' for another. A parser has to recognise the language before it can read the date, and there is no field telling it which language to expect.

Our HTML parser handles the English format and the Portuguese 'DD de MMM de YYYY' form, including the BRT and BRST abbreviations; we checked the Portuguese one on a real export of 22,812 entries in November 2026. Anything else falls through to the browser's own date parser, which will either produce a wrong date or refuse the string, and a refused date leaves that entry out of every count. If your account displays dates in German, Japanese, or Hindi and you exported HTML, export again as JSON.

The JSON export has none of this ambiguity, because ISO 8601 is not localised.

Fragility beyond dates

Positional parsing is brittle in other ways too. The HTML export's markup is a Google implementation detail, not a documented format, and it has changed before. A layout change that a human reader would not even notice — an extra link, a reordered element — can break a parser that depends on 'the second anchor is the channel'.

HTML is also heavier. Every entry is wrapped in markup and repeated class attributes: the HTML history we counted took 24 MB for 22,812 entries, about 1 KB each, for what is a verb, a title, two links and a date.

If you already have an HTML export

You do not necessarily have to redo the export. Our analyzer reads watch-history.html as well as watch-history.json, and will accept either from inside a .zip or .tgz archive without unpacking.

Check the results before trusting them. Look at the total and the date range and ask whether they match your memory. Our analyzer leaves out an entry whose date it cannot read, so a total far below what you expect, or a range that starts years late, means the dates did not parse and you should export again as JSON.

Re-exporting is not expensive if you ask for history only, since that is text rather than the uploaded videos that make Takeout archives large. Google says an export can take from a few minutes to a few days, and that most people get the link the same day.

Choosing at export time

In Takeout, click 'Deselect all', tick 'YouTube and YouTube Music', then click 'All YouTube data included' and keep only history. That single step is the difference between a download of text and an archive that includes every video you ever uploaded.

To get JSON, click 'Multiple formats' and change 'history' from HTML, the default, to JSON. Most people skip past it, and for the analyzer on this site that is fine in English or Portuguese. It matters when your account uses another language, or when you intend to process the file yourself.

Checking whether your HTML dates parsed at all

If you already loaded an HTML export into a tool, the failure can be quiet. Our analyzer leaves out any entry whose date it cannot read. Other tools may fall back to some date instead, and then you get charts, and the charts are wrong.

Three symptoms give it away. A total far below what you expect means entries were dropped, which is what our analyzer does with a date it cannot read. A large share of views landing on a single day, usually today, means a tool fell back to the current date. An hour-of-day histogram that looks flat, with viewing spread evenly across 3am and 3pm alike, means the times are noise — real human viewing is never uniform across the clock.

If you see any of those, do not try to interpret the result. Re-export as JSON.

Why the size difference is not just cosmetic

The HTML export carries the same events wrapped in markup: a container per entry, inline styling, repeated class attributes, and link markup around every title and channel. That is where the 24 MB for 22,812 entries goes.

That matters because this analysis runs in your browser tab, on your device. A larger file means more memory to hold the parsed document and more work to walk it, and the gap is felt most on phones and older laptops — exactly the devices where a tab is most likely to be killed mid-analysis.

JSON is read by the browser's native JSON reader, which does less work than building a whole page and querying it. In our check the 24 MB HTML history, inside a 41 MB archive, still loaded in about a second on a laptop, so the difference shows on much larger histories and slower devices.

What to do if you cannot re-export

Occasionally re-exporting is not practical — you are working from an archive someone kept years ago, or from an account you no longer control.

In that case, load the HTML and check the total first. With English or Portuguese dates nothing is lost. With dates in another language, our analyzer leaves out every entry whose date it cannot read, so the total, the top channels and every chart come out short by those entries.

That is worth knowing generally: in this dataset every conclusion about when something happened rests on one field being read correctly, and in our analyzer so does whether an entry is counted at all.

Next step

Continue into the actual tool

Use the guide to understand the workflow, then move into the app page for local interaction.