MYFRESHTOOLS
50% OFF
YouTube › Reference

YouTube Category ID List: All Category IDs and Names

The numbers behind YouTube's categories, for spreadsheets, scripts and the Data API.

Updated 2 December 2026 · 6 min read
Quick answer
YouTube creators can choose from 15 categories, each with a numeric ID: 1 Film & Animation, 2 Autos & Vehicles, 10 Music, 15 Pets & Animals, 17 Sports, 19 Travel & Events, 20 Gaming, 22 People & Blogs, 23 Comedy, 24 Entertainment, 25 News & Politics, 26 Howto & Style, 27 Education, 28 Science & Technology and 29 Nonprofits & Activism. To see or change the category of your own videos without code, use the Bulk Video Category Changer.

YouTube shows category names in Studio, but everywhere data leaves YouTube (API responses, exports, analytics scripts, spreadsheets) the category is a number. That makes a reference table handy, and it's surprisingly hard to find a complete one.

Here are all the IDs creators can pick, the extra IDs that appear in API data but can't be chosen, how to fetch the list yourself, and the gotchas that trip people up.

Main list

The 15 categories creators can pick

IDCategoryIDCategory
1Film & Animation23Comedy
2Autos & Vehicles24Entertainment
10Music25News & Politics
15Pets & Animals26Howto & Style
17Sports27Education
19Travel & Events28Science & Technology
20Gaming29Nonprofits & Activism
22People & Blogs

These are the categories in YouTube Studio's Category drop-down. Every video on YouTube is in exactly one category.

Extended list

Other IDs you may see in data

The API's category list also contains IDs that aren't offered to creators (marked as not assignable). You may meet them in data, but you can't set them on a video:

IDName
18Short Movies
21Videoblogging
30Movies
31Anime/Animation
32Action/Adventure
33Classics
34Comedy (movies)
35Documentary
36Drama
37Family
38Foreign
39Horror
40Sci-Fi/Fantasy
41Thriller
42Shorts
43Shows
44Trailers

Region and language

This list reflects the US region in English. Names are translated in other languages, and the set of assignable categories can differ by region. For anything production-grade, fetch the list for your region.
For developers

Getting the list from the API

The YouTube Data API's videoCategories.list method returns the categories for a region. Request part=snippet with a regionCode (for example US). Each item has an id, a snippet.title and a snippet.assignable flag: only assignable categories can be set on a video. The call costs 1 quota unit.

Single video

Reading a video's category ID

  • Without code: paste a public video's link into the free Video Category Checker, which shows the category name and ID.
  • With the API: videos.list with part=snippet returns snippet.categoryId for each video (as a string).
  • In Studio: open the video and read the Category field under Show more (name only, no ID).

The Video Category Checker is the fastest way to get one ID.

Spreadsheets

Using category IDs in a spreadsheet

If an export gives you a column of category IDs, add a two-column lookup sheet (ID, name) from the table above, then use a lookup formula to turn each ID into a name. Store the ID column as text so "22" matches "22", then pivot by name to count videos per category.


The tool

How MyFreshTools helps

What the tool does

The Bulk Video Category Changer gives you the category of every upload on your own channel without an API key, a script or a lookup table. It counts videos per category and lets you change them in bulk. Changes are made safely: each video's title, description and tags are re-sent unchanged, so nothing is wiped.

Who it's for

  • Creators who need their category data but don't write code.
  • Developers who'd rather not build and maintain a category script.
  • Analysts tidying a channel's categories before reporting.

How to use it

  • Connect YouTube; the scan lists every upload with its category.
  • Filter by category or search titles.
  • Tick videos, choose a category and confirm to change them.

Requirements and limits

  • You need a free account and Connect YouTube. Changing a category needs permission to edit your videos, so Google asks for read and edit access on one consent screen.
  • Seeing your videos and their categories is free. The free plan shows your newest 100 uploads; paid plans check up to 5,000.
  • Changing a category costs 1 credit per video YouTube confirms changed. Videos already in the chosen category, and any that fail, are never charged.
  • Up to 100 videos per run. A bigger clean-up is a few runs.
  • It only works on videos the connected channel owns, and it only changes the category. Titles, descriptions, tags and languages are sent back unchanged.
  • Undo is free for 90 days. It skips any video whose category you have changed again since, so it never overwrites a newer edit.
Avoid these

Gotchas

GotchaWhat happensAvoid it by
Updating only categoryId via the APIvideos.update replaces the whole snippet, clearing description and tagsRead the snippet first and re-send every field
Comparing IDs as numbers"22" and 22 don't match in some toolsTreat IDs as text
Setting a non-assignable IDThe API rejects itUse only the 15 assignable IDs
Hard-coding namesNames differ by languageStore IDs, look up names for display

Frequently asked questions

22 is People & Blogs, the category most videos get when the uploader doesn't pick one.

27 is Education. 26 is Howto & Style and 28 is Science & Technology, the two categories it's most often confused with.

The YouTube Data API returns categoryId as a string, such as "22", not a number. Compare it as text, or convert it first, to avoid mismatches in code and spreadsheets.

The IDs for the main categories are the same across regions, but names can be translated and the list of assignable categories can differ by region. Request the list with your regionCode to be sure.

Yes, through the API: videos.update with part=snippet takes a categoryId. Because that call replaces the whole snippet, you must re-send the title, description and tags too, or they're cleared.

The takeaway

Fifteen IDs cover everything a creator can choose; 22 is People & Blogs, the default. Keep IDs as text, fetch the list per region for code, and never update a category through the API without re-sending the rest of the snippet.

Related MyFreshTools tools